wgpu/naga/tests/out/wgsl/binding-arrays.static.wgsl
2023-10-25 14:25:04 -04:00

19 lines
415 B
WebGPU Shading Language

@group(0) @binding(0)
var global: binding_array<texture_2d<f32>, 256>;
@group(0) @binding(1)
var global_1: binding_array<sampler, 256>;
var<private> global_2: vec4<f32>;
fn function() {
let _e8 = textureSampleLevel(global[1], global_1[1], vec2<f32>(0.5, 0.5), 0.0);
global_2 = _e8;
return;
}
@fragment
fn main() -> @location(0) vec4<f32> {
function();
let _e1 = global_2;
return _e1;
}