mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 06:21:13 +01:00
13 lines
396 B
WebGPU Shading Language
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);
|
|
}
|