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

10 lines
379 B
Plaintext
Raw Permalink Normal View History

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