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

12 lines
177 B
Plaintext
Raw Normal View History

#include <metal_stdlib>
using namespace metal;
struct S {
/* 0x0000 */ int a;
};
void foo(device S* const tint_symbol) {
(*(tint_symbol)).a = ((*(tint_symbol)).a % 2);
}