dawn-cmake/test/tint/expressions/swizzle/write/vec3/f32.wgsl.expected.msl

19 lines
367 B
Plaintext
Raw Normal View History

#include <metal_stdlib>
using namespace metal;
struct S {
float3 v;
};
struct tint_private_vars_struct {
S P;
};
void f(thread tint_private_vars_struct* const tint_private_vars) {
(*(tint_private_vars)).P.v = float3(1.0f, 2.0f, 3.0f);
(*(tint_private_vars)).P.v[0] = 1.0f;
(*(tint_private_vars)).P.v[1] = 2.0f;
(*(tint_private_vars)).P.v[2] = 3.0f;
}