wgpu/naga/tests/in/sprite.wgsl
2023-10-25 14:25:04 -04:00

8 lines
230 B
WebGPU Shading Language

@group(0) @binding(0) var u_texture : texture_2d<f32>;
@group(0) @binding(1) var u_sampler : sampler;
@fragment
fn main(@location(0) uv : vec2<f32>) -> @location(0) vec4<f32> {
return textureSample(u_texture, u_sampler, uv);
}