mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-14 06:34:10 +00:00
Restore bounded array in mipmapgen.cs.hlsl for DXIL UAV binding
This commit is contained in:
parent
8fe25bf987
commit
a466a7a4ad
1 changed files with 4 additions and 0 deletions
|
@ -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*
|
||||
|
||||
|
|
Loading…
Reference in a new issue