Restore bounded array in mipmapgen.cs.hlsl for DXIL UAV binding

This commit is contained in:
Stephen Saunders 2023-01-25 21:08:25 -05:00
parent 8fe25bf987
commit a466a7a4ad

View file

@ -83,7 +83,11 @@ cbuffer c_MipMapgen : register( b0 )
MipmmapGenConstants g_MipMapGen;
};
#ifdef __spirv__ // use unbounded array size for proper SPIR-V descriptor binding
RWTexture2D<VALUE_TYPE> u_output[] : register( u0 );
#else // use bounded array for DXIL -flegacy-resource-reservation flag
RWTexture2D<VALUE_TYPE> u_output[NUM_LODS] : register( u0 );
#endif
Texture2D<VALUE_TYPE> t_input : register( t0 );
// *INDENT-ON*