wgpu/tests/in/sprite.wgsl
Dzmitry Malyshau 16be1a9237
spv-out: support version 1.4 (#2230)
* spv-out: support version 1.4

* Extract SPV version numner from the comment
2023-02-01 12:24:05 +01: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);
}