dawn-cmake/test/intrinsics/gen/textureSample/8522e7.wgsl.expected.glsl
Stephen White cc4d97b6e3 GLSL: use "Offset" forms of texture intrinsics when appropriate.
Also ensure correct paramter ordering: bias is always after offset.

Bug: tint:1351

Change-Id: I41ee66b86cd9d912f3857e5377b660c50d035c6e
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/73720
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: James Price <jrprice@google.com>
Commit-Queue: Stephen White <senorblanco@chromium.org>
2021-12-21 16:53:36 +00:00

20 lines
290 B
GLSL

#version 310 es
precision mediump float;
uniform highp sampler2DArray arg_0;
void textureSample_8522e7() {
float res = textureOffset(arg_0, vec3(0.0f, 0.0f, float(1)), ivec2(0, 0)).x;
}
void fragment_main() {
textureSample_8522e7();
return;
}
void main() {
fragment_main();
}