2219c4a392
MSL 2.3 has everything needed to support this extension on all platforms. The existing `discard_fragment()` function was given demote semantics, similar to Direct3D, and the `simd_is_helper_thread()` function was finally added to iOS. I've left the old test alone. Should I remove it in favor of these?
9 lines
133 B
GLSL
9 lines
133 B
GLSL
#version 450
|
|
#extension GL_EXT_demote_to_helper_invocation : require
|
|
|
|
void main()
|
|
{
|
|
demote;
|
|
bool helper = helperInvocationEXT();
|
|
}
|