wgpu/naga/tests/in/sprite.wgsl

8 lines
230 B
WebGPU Shading Language
Raw Normal View History

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