mirror of
https://github.com/RPCS3/glslang.git
synced 2024-11-24 11:50:06 +00:00
7a49192d23
Add command line support which enables the following behavior: - Remap discard Map discard to DemoteToHelperInvocation for HLSL shaders. Map to OpTerminateInvocation for GLSL shaders. - Decorate HelperInvocation with Volatile - Use localSizeId for execution mode WorkGroupSize is deprecated in spirv1.6 Also update known goods to SPIRV 1.6
15 lines
173 B
GLSL
15 lines
173 B
GLSL
void foo(float f)
|
|
{
|
|
if (f < 1.0)
|
|
discard;
|
|
}
|
|
|
|
void PixelShaderFunction(float4 input) : COLOR0
|
|
{
|
|
foo(input.z);
|
|
if (input.x)
|
|
discard;
|
|
float f = input.x;
|
|
discard;
|
|
}
|