Commit 34718204 by John Kessenich

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

parent 13075c61
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 float4 PixelShaderFunction(float4 input) : COLOR0
{ {
int a = 1 < 2 ? 3 < 4 ? 5 : 6 : 7; int a = 1 < 2 ? 3 < 4 ? 5 : 6 : 7;
...@@ -12,5 +24,5 @@ float4 PixelShaderFunction(float4 input) : COLOR0 ...@@ -12,5 +24,5 @@ float4 PixelShaderFunction(float4 input) : COLOR0
e = a = b ? c = d : 10, b = a ? d = c : 11; e = a = b ? c = d : 10, b = a ? d = c : 11;
float4 f; float4 f;
f = ret.x < input.y ? c * input : d * input; f = ret.x < input.y ? c * input : d * input;
return e * ret + f; return e * ret + f + vectorCond();
} }
...@@ -2,5 +2,5 @@ ...@@ -2,5 +2,5 @@
// For the version, it uses the latest git tag followed by the number of commits. // 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). // 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" #define GLSLANG_DATE "11-Apr-2017"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment