mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-12-12 00:23:45 +00:00
19 lines
407 B
WebGPU Shading Language
19 lines
407 B
WebGPU Shading Language
@group(0) @binding(0)
|
|
var global: binding_array<texture_2d<f32>>;
|
|
@group(0) @binding(1)
|
|
var global_1: binding_array<sampler>;
|
|
var<private> global_2: vec4<f32>;
|
|
|
|
fn function() {
|
|
let _e13 = textureSampleLevel(global[1], global_1[1], vec2<f32>(0.5, 0.5), 0.0);
|
|
global_2 = _e13;
|
|
return;
|
|
}
|
|
|
|
@fragment
|
|
fn main() -> @location(0) vec4<f32> {
|
|
function();
|
|
let _e1 = global_2;
|
|
return _e1;
|
|
}
|