dawn-cmake/test/intrinsics/gen/textureDimensions/8f20bf.wgsl.expected.msl
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

28 lines
807 B
Plaintext

#include <metal_stdlib>
using namespace metal;
struct tint_symbol {
float4 value [[position]];
};
void textureDimensions_8f20bf(texturecube_array<float, access::sample> tint_symbol_2) {
int2 res = int2(tint_symbol_2.get_width(), tint_symbol_2.get_height());
}
vertex tint_symbol vertex_main(texturecube_array<float, access::sample> tint_symbol_3 [[texture(0)]]) {
textureDimensions_8f20bf(tint_symbol_3);
tint_symbol const tint_symbol_1 = {.value=float4()};
return tint_symbol_1;
}
fragment void fragment_main(texturecube_array<float, access::sample> tint_symbol_4 [[texture(0)]]) {
textureDimensions_8f20bf(tint_symbol_4);
return;
}
kernel void compute_main(texturecube_array<float, access::sample> tint_symbol_5 [[texture(0)]]) {
textureDimensions_8f20bf(tint_symbol_5);
return;
}