dawn-cmake/test/tint/statements/compound_assign/private.wgsl.expected.msl

10 lines
310 B
Plaintext

#include <metal_stdlib>
using namespace metal;
void foo(thread int* const tint_symbol, thread float4* const tint_symbol_1, thread float2x2* const tint_symbol_2) {
*(tint_symbol) = (*(tint_symbol) / 2);
*(tint_symbol_1) = (*(tint_symbol_1) * float4x4());
*(tint_symbol_2) = (*(tint_symbol_2) * 2.0f);
}