dawn-cmake/test/intrinsics/gen/textureDimensions/8f20bf.wgsl.expected.hlsl
Ben Clayton b96ed7bda4 intrinsics: textureDimensions for cubes return vec2
See: https://github.com/gpuweb/gpuweb/pull/1754

Fixed: tint:882
Change-Id: Ibb48722dbaf6a7b200158bb87bc71c282056ed5e
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/55259
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: David Neto <dneto@google.com>
Commit-Queue: Ben Clayton <bclayton@chromium.org>
2021-06-21 16:44:26 +00:00

29 lines
557 B
HLSL

TextureCubeArray<float4> arg_0 : register(t0, space1);
void textureDimensions_8f20bf() {
int3 tint_tmp;
arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z);
int2 res = tint_tmp.xy;
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
textureDimensions_8f20bf();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
return tint_symbol_1;
}
void fragment_main() {
textureDimensions_8f20bf();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
textureDimensions_8f20bf();
return;
}