Fix colons

This commit is contained in:
Andras Schmelczer 2023-04-29 21:21:34 +01:00
commit 15836f2876
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
5 changed files with 49 additions and 49 deletions

View file

@ -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;