Files
wgpu/naga/tests/in/wgsl/sample-cube-array-depth-lod.wgsl
T

13 lines
396 B
WebGPU Shading Language

// see https://github.com/gfx-rs/wgpu/issues/4455
@group(0) @binding(0) var texture: texture_depth_cube_array;
@group(0) @binding(1) var texture_sampler: sampler_comparison;
@fragment
fn main() -> @location(0) f32 {
let pos = vec3<f32>(0.0);
let array_index: i32 = 0;
let depth: f32 = 0.0;
return textureSampleCompareLevel(texture, texture_sampler, pos, array_index, depth);
}