Files
UnrealEngineUWP/Engine/Source/Runtime/Apple
richard wallis 705ed1e745 Fix for Metal running out of buffer binding slots (max 31) due to the allocation of texture+buffer slot per SRV texture.
- Consume Uniform then UAV buffer slots first.
- Don't use up a buffer slot for texel buffers as we should be using texture buffers for these now.
- If we are not using a buffer slot for the same texel slot index then don't attempt to bind the underlying SRV buffer when binding the SRV texture otherwise it'll stomp on other in use buffer slots.
- Use CountTrailingZeros64() when referencing TextureIndices as that is a 64bit type.

#jira UE-141595
#preflight 620e3612fe76023596bd3e52
[REVIEW] [at]will.damon,  [at]laura.hermanns
#rnx
#lockdown cristina.riveron

#ROBOMERGE-AUTHOR: richard.wallis
#ROBOMERGE-SOURCE: CL 19116483 in //UE5/Release-5.0/... via CL 19117285
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19153361 by richard wallis in ue5-main branch]
2022-02-25 14:36:37 -05:00
..