mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-29 18:23:36 +00:00
8 lines
230 B
WebGPU Shading Language
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);
|
||
|
}
|