dawn-cmake/test/intrinsics/gen/textureSampleLevel/690d95.wgsl.expected.wgsl
Sarah e6cb51e715 validation: compute shader must include 'workgroup_size' in its attributes
Bug: tint:884
Change-Id: If96c6df3247fee142a779117fa26d006afd4f7ef
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/55680
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
2021-06-29 18:39:44 +00:00

24 lines
521 B
WebGPU Shading Language

[[group(1), binding(0)]] var arg_0 : texture_2d<f32>;
[[group(1), binding(1)]] var arg_1 : sampler;
fn textureSampleLevel_690d95() {
var res : vec4<f32> = textureSampleLevel(arg_0, arg_1, vec2<f32>(), 1.0, vec2<i32>());
}
[[stage(vertex)]]
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
textureSampleLevel_690d95();
return vec4<f32>();
}
[[stage(fragment)]]
fn fragment_main() {
textureSampleLevel_690d95();
}
[[stage(compute), workgroup_size(1)]]
fn compute_main() {
textureSampleLevel_690d95();
}