dawn-cmake/test/tint/builtins/gen/var/textureSample/85c4ba.wgsl.expected.wgsl
Ben Clayton c0af5c5c9c tint: Add builtin tests for arguments passed by var
Change-Id: I81b69d23e40675d7f525e6369afec9aa0659d043
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/92321
Reviewed-by: Dan Sinclair <dsinclair@chromium.org>
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
2022-06-02 14:36:10 +00:00

14 lines
293 B
WebGPU Shading Language

@group(1) @binding(0) var arg_0 : texture_2d<f32>;
@group(1) @binding(1) var arg_1 : sampler;
fn textureSample_85c4ba() {
var arg_2 = vec2<f32>();
var res : vec4<f32> = textureSample(arg_0, arg_1, arg_2, vec2<i32>());
}
@stage(fragment)
fn fragment_main() {
textureSample_85c4ba();
}