2022-11-21 17:11:05 +00:00
|
|
|
uint tint_mod(uint lhs, uint rhs) {
|
|
|
|
return (lhs % ((rhs == 0u) ? 1u : rhs));
|
|
|
|
}
|
|
|
|
|
|
|
|
struct tint_symbol_1 {
|
|
|
|
uint3 v : SV_DispatchThreadID;
|
|
|
|
};
|
|
|
|
|
|
|
|
void f_inner(uint3 v) {
|
2023-03-02 20:48:48 +00:00
|
|
|
const uint l = (v.x << (tint_mod(v.y, 1u) & 31u));
|
2022-11-21 17:11:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[numthreads(1, 1, 1)]
|
|
|
|
void f(tint_symbol_1 tint_symbol) {
|
|
|
|
f_inner(tint_symbol.v);
|
|
|
|
return;
|
|
|
|
}
|