Ben Clayton c3adc78cbc test/tint/builtins: Remove hack for 'level' parameter value
I'm sure this was needed at one point, but I can't seem to find the
requirement in either the spec or implementation. *shrug*

Change-Id: I8c139747c2a6864867ecda0b82a5f7991ad9d3ef
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/106886
Reviewed-by: Dan Sinclair <dsinclair@chromium.org>
2022-10-25 13:08:45 +00:00

24 lines
473 B
WebGPU Shading Language

@group(1) @binding(0) var arg_0 : texture_depth_2d_array;
@group(1) @binding(1) var arg_1 : sampler;
fn textureSampleLevel_1bf73e() {
var res : f32 = textureSampleLevel(arg_0, arg_1, vec2<f32>(), 1i, 1i);
}
@vertex
fn vertex_main() -> @builtin(position) vec4<f32> {
textureSampleLevel_1bf73e();
return vec4<f32>();
}
@fragment
fn fragment_main() {
textureSampleLevel_1bf73e();
}
@compute @workgroup_size(1)
fn compute_main() {
textureSampleLevel_1bf73e();
}