blob: 9fe0a5f17aaf22ed3817e4e7af9ecbca3d54bd7e [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
#define TINT_ISOLATE_UB(VOLATILE_NAME) \
{volatile bool VOLATILE_NAME = false; if (VOLATILE_NAME) break;}
void foo(texture2d<int, access::read_write> tint_symbol) {
{
int i = 0;
while(true) {
TINT_ISOLATE_UB(tint_volatile_false);
if (!((i < 3))) {
break;
}
{
}
{
tint_symbol.write(int4(0), uint2(int2(0))); tint_symbol.fence();
}
}
}
}