dawn-cmake/test/tint/bug/tint/1563.wgsl.expected.msl

12 lines
199 B
Plaintext

#include <metal_stdlib>
using namespace metal;
float foo() {
int const oob = 99;
float const b = float4(0.0f)[min(uint(oob), 3u)];
float4 v = 0.0f;
v[min(uint(oob), 3u)] = b;
return b;
}