Improve exmaple formatting
@@ -15,16 +15,21 @@ Struct Shader {
// Create component values with strings
my_pipeline {
- (Shader, Vertex) {
- filename: "vert.glsl", // Normal string
- code: ` // Multiline string
+ // Normal string
+ filename: "vert.glsl",
+
+ // Multiline string
+ code: `
void main() {
gl_Position = pos;
- }`}
+ }`
+ }
- (Shader, Fragment) {
filename: "frag.glsl",
code: `
void main() {
frag_color = color;
- }`}
+ }`
+ }
}
