The only problem is that the shader won’t compile if you’re using DX12 and more than 64 SRVs.
This code is bad, it should have a DX11/DX12 switch and run this code ONLY if the engine is running in DX12.
3 Likes