mach/shaderexp/black_screen_frag.wgsl
Stephen Gutekanst f299d87aa2 {examples,shaderexp}: update to new mach/gpu API
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-12 00:43:43 -07:00

11 lines
262 B
WebGPU Shading Language
Executable file

struct UniformBufferObject {
time: f32,
resolution: vec2<f32>,
}
@group(0) @binding(0) var<uniform> ubo : UniformBufferObject;
@fragment fn main(
@location(0) uv : vec2<f32>
) -> @location(0) vec4<f32> {
return vec4<f32>( 0.0, 0.0, 0.0, 1.0);
}