ffx_a.h:2040:124: error: condition for short-circuiting ternary operator must be scalar
float32_t2 AZolZeroPassF2(float32_t2 x,float32_t2 y){return asfloat(uint32_t2((asuint(float32_t2(x))!=AU2_x(uint32_t(0)))?AU2_x(uint32_t(0)):asuint(float32_t2(y))));}
Thanks Colin, we'll ship that fix in the next FSR point release (hopefully soon). Because ffx_a.h is also shipped by other projects, we'll also take a look at fixes for those too.
Hi,
Microsoft recently upgraded its DXC compiler with new HLSL features.
In HLSL 2021,
int3 Z = X ? 1 : 0;
has to be replaced withint3 Z = select(X, 1, 0);
:In the case of FSR, lines 2040-2042 in ffx_a.h:
Gives this error:
It can be fixed this way:
Alternatively, one can use the __HLSL_VERSION to detect if the shader is being compiled with
-HV 2021
: