Move lightmap atlas textures and light probes to the bindless textures array as its impossible to predict up front how many we need

This commit is contained in:
Magnus Norddahl 2025-07-08 02:59:10 +02:00
commit af6ec929cc
19 changed files with 317 additions and 249 deletions

View file

@ -458,6 +458,8 @@ void VkRenderState::ApplySurfaceUniforms()
mSurfaceUniforms.uColormapIndex = 0;
}
mSurfaceUniforms.uLightProbeIndex = fb->GetDescriptorSetManager()->GetLightProbeTextureIndex(mLightProbeIndex);
if (mMaterial.mChanged)
{
if (mMaterial.mMaterial)