dawn-cmake/test/tint/builtins/gen/literal/textureLoad/bc3201.wgsl.expected.wgsl
Ben Clayton da5424b617 tint: Allow signed / unsigned texture builtin params
Bug: tint:1526
Change-Id: I301a9ba6e94b162a1ffb436be3e3212b723b7401
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/106682
Reviewed-by: Dan Sinclair <dsinclair@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
2022-10-24 23:58:53 +00:00

22 lines
373 B
WebGPU Shading Language

@group(1) @binding(0) var arg_0 : texture_1d<u32>;
fn textureLoad_bc3201() {
var res : vec4<u32> = textureLoad(arg_0, 1u, 1u);
}
@vertex
fn vertex_main() -> @builtin(position) vec4<f32> {
textureLoad_bc3201();
return vec4<f32>();
}
@fragment
fn fragment_main() {
textureLoad_bc3201();
}
@compute @workgroup_size(1)
fn compute_main() {
textureLoad_bc3201();
}