dawn-cmake/test/tint/expressions/swizzle/write/packed_vec3/u32.wgsl.expected.msl

16 lines
302 B
Plaintext

#include <metal_stdlib>
using namespace metal;
struct S {
/* 0x0000 */ packed_uint3 v;
/* 0x000c */ int8_t tint_pad[4];
};
void f(device S* const tint_symbol) {
(*(tint_symbol)).v = uint3(1u, 2u, 3u);
(*(tint_symbol)).v[0] = 1u;
(*(tint_symbol)).v[1] = 2u;
(*(tint_symbol)).v[2] = 3u;
}