better wgsl code style
This commit is contained in:
parent
a88155b2a2
commit
390e2a2d34
4 changed files with 11 additions and 11 deletions
|
|
@ -1,18 +1,18 @@
|
|||
struct Globals {
|
||||
transform: mat4x4<f32>,
|
||||
};
|
||||
}
|
||||
|
||||
@group(0) @binding(0) var<uniform> globals: Globals;
|
||||
|
||||
struct VertexInput {
|
||||
@location(0) position: vec2<f32>,
|
||||
@location(1) color: vec4<f32>,
|
||||
};
|
||||
}
|
||||
|
||||
struct VertexOutput {
|
||||
@builtin(position) position: vec4<f32>,
|
||||
@location(0) color: vec4<f32>,
|
||||
};
|
||||
}
|
||||
|
||||
@vertex
|
||||
fn vs_main(input: VertexInput) -> VertexOutput {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue