Files
wgpu/tests/in/cubeArrayShadow.wgsl
João Capucho 6a57559070 [glsl-out] Improve handling of samplerCubeArrayShadow
Adds checks that it isn't used in an unsupported function and emits the
depth_ref as a separate argument.
2021-09-21 16:54:05 -04:00

13 lines
422 B
WebGPU Shading Language

[[group(0), binding(4)]]
var point_shadow_textures: texture_depth_cube_array;
[[group(0), binding(5)]]
var point_shadow_textures_sampler: sampler_comparison;
[[stage(fragment)]]
fn fragment() -> [[location(0)]] vec4<f32> {
let frag_ls = vec4<f32>(1., 1., 2., 1.).xyz;
let a = textureSampleCompare(point_shadow_textures, point_shadow_textures_sampler, frag_ls, i32(1), 1.);
return vec4<f32>(a, 1., 1., 1.);
}