SPIRV-Cross/reference/shaders-msl-no-opt/frag/volatile-helper-invocation.msl23.spv16.frag
Hans-Kristian Arntzen b192b8887a MSL: Consider that gl_IsHelperInvocation can be Volatile.
Just emit simd_is_helper_thread() directly.
2022-03-04 11:46:35 +01:00

24 lines
411 B
GLSL

#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct main0_out
{
float FragColor [[color(0)]];
};
fragment main0_out main0()
{
main0_out out = {};
bool _12 = simd_is_helper_thread();
float _15 = float(_12);
out.FragColor = _15;
discard_fragment();
bool _16 = simd_is_helper_thread();
float _17 = float(_16);
out.FragColor = _17;
return out;
}