Skip to content
Snippets Groups Projects
Commit 34718204 authored by John Kessenich's avatar John Kessenich
Browse files

HLSL: Non-functional: add vector ? : tests.

parent 13075c61
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
float4 c4;
float4 t4;
float4 f4;
float t;
float f;
float4 vectorCond()
{
return f4; // return (c4 ? t4 : f4) +
// (c4 ? t : f );
}
float4 PixelShaderFunction(float4 input) : COLOR0
{
int a = 1 < 2 ? 3 < 4 ? 5 : 6 : 7;
......@@ -12,5 +24,5 @@ float4 PixelShaderFunction(float4 input) : COLOR0
e = a = b ? c = d : 10, b = a ? d = c : 11;
float4 f;
f = ret.x < input.y ? c * input : d * input;
return e * ret + f;
return e * ret + f + vectorCond();
}
......@@ -2,5 +2,5 @@
// For the version, it uses the latest git tag followed by the number of commits.
// For the date, it uses the current date (when then script is run).
#define GLSLANG_REVISION "Overload400-PrecQual.1990"
#define GLSLANG_REVISION "Overload400-PrecQual.1992"
#define GLSLANG_DATE "11-Apr-2017"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment