16 lines
226 B
Plaintext
16 lines
226 B
Plaintext
|
#include <metal_stdlib>
|
||
|
|
||
|
using namespace metal;
|
||
|
struct S {
|
||
|
/* 0x0000 */ packed_uint3 v;
|
||
|
/* 0x000c */ int8_t tint_pad[4];
|
||
|
};
|
||
|
|
||
|
void f(device S& U) {
|
||
|
U.v = uint3(1u, 2u, 3u);
|
||
|
U.v[0] = 1u;
|
||
|
U.v[1] = 2u;
|
||
|
U.v[2] = 3u;
|
||
|
}
|
||
|
|