Fix colons
This commit is contained in:
parent
99e1923066
commit
15836f2876
5 changed files with 49 additions and 49 deletions
|
|
@ -1,27 +1,27 @@
|
|||
struct Settings {
|
||||
size : vec2<f32>,
|
||||
deltaTime : f32,
|
||||
time : f32,
|
||||
size: vec2<f32>,
|
||||
deltaTime: f32,
|
||||
time: f32,
|
||||
brushWidth: f32,
|
||||
brushBlurWidth: f32
|
||||
};
|
||||
|
||||
@group(0) @binding(0) var<uniform> settings : Settings;
|
||||
@group(0) @binding(0) var<uniform> settings: Settings;
|
||||
@group(0) @binding(1) var Sampler: sampler;
|
||||
@group(0) @binding(2) var noise : texture_2d<f32>;
|
||||
@group(0) @binding(2) var noise: texture_2d<f32>;
|
||||
|
||||
struct VertexOutput {
|
||||
@builtin(position) position : vec4<f32>,
|
||||
@location(0) screenPosition : vec2<f32>,
|
||||
@location(1) start : vec2<f32>,
|
||||
@location(2) end : vec2<f32>
|
||||
@builtin(position) position: vec4<f32>,
|
||||
@location(0) screenPosition: vec2<f32>,
|
||||
@location(1) start: vec2<f32>,
|
||||
@location(2) end: vec2<f32>
|
||||
}
|
||||
|
||||
@vertex
|
||||
fn vertex(
|
||||
@location(0) screenPosition : vec2<f32>,
|
||||
@location(1) @interpolate(flat) start : vec2<f32>,
|
||||
@location(2) @interpolate(flat) end : vec2<f32>
|
||||
@location(0) screenPosition: vec2<f32>,
|
||||
@location(1) @interpolate(flat) start: vec2<f32>,
|
||||
@location(2) @interpolate(flat) end: vec2<f32>
|
||||
) -> VertexOutput {
|
||||
let uv = screenPosition / settings.size;
|
||||
let position = uv * 2.0 - 1.0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue