diff options
author | 2022-07-02 22:51:51 +0800 | |
---|---|---|
committer | 2022-07-02 22:51:51 +0800 | |
commit | 390e2a2d34d610dec057a3b6679b795e8c2a5c94 (patch) | |
tree | 39bd96a5d09caaddcb57d077e373050144a5df8c /wgpu/src/shader/quad.wgsl | |
parent | a88155b2a28bfcbe39c7b87d7e9befb73a7dc8d7 (diff) | |
download | iced-390e2a2d34d610dec057a3b6679b795e8c2a5c94.tar.gz iced-390e2a2d34d610dec057a3b6679b795e8c2a5c94.tar.bz2 iced-390e2a2d34d610dec057a3b6679b795e8c2a5c94.zip |
better `wgsl` code style
Diffstat (limited to '')
-rw-r--r-- | wgpu/src/shader/quad.wgsl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wgpu/src/shader/quad.wgsl b/wgpu/src/shader/quad.wgsl index 2e31cde3..73edd97c 100644 --- a/wgpu/src/shader/quad.wgsl +++ b/wgpu/src/shader/quad.wgsl @@ -1,7 +1,7 @@ struct Globals { transform: mat4x4<f32>, scale: f32, -}; +} @group(0) @binding(0) var<uniform> globals: Globals; @@ -13,7 +13,7 @@ struct VertexInput { @location(4) border_color: vec4<f32>, @location(5) border_radius: f32, @location(6) border_width: f32, -}; +} struct VertexOutput { @builtin(position) position: vec4<f32>, @@ -23,7 +23,7 @@ struct VertexOutput { @location(3) scale: vec2<f32>, @location(4) border_radius: f32, @location(5) border_width: f32, -}; +} @vertex fn vs_main(input: VertexInput) -> VertexOutput { |