dawn-cmake/test/intrinsics/gen/transpose/d8f8ba.wgsl.expected.msl
Ben Clayton 0a2b5f22d4 Add transpose intrinsic
Fixed: tint:860
Change-Id: I899e280807503064fbabaafe02d37de4187b3298
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/53805
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: David Neto <dneto@google.com>
2021-06-09 14:32:14 +00:00

28 lines
443 B
Plaintext

#include <metal_stdlib>
using namespace metal;
struct tint_symbol {
float4 value [[position]];
};
void transpose_d8f8ba() {
float4x3 res = transpose(float3x4());
}
vertex tint_symbol vertex_main() {
transpose_d8f8ba();
tint_symbol const tint_symbol_1 = {.value=float4()};
return tint_symbol_1;
}
fragment void fragment_main() {
transpose_d8f8ba();
return;
}
kernel void compute_main() {
transpose_d8f8ba();
return;
}