Graphics: Make use of new auto_binding

This commit is contained in:
SirLynix
2022-10-31 22:44:19 +01:00
parent 6b8be23fa0
commit ab154819a7
5 changed files with 42 additions and 35 deletions

View File

@@ -33,7 +33,8 @@ namespace Nz
const std::shared_ptr<RenderDevice>& renderDevice = graphics->GetRenderDevice();
nzsl::Ast::SanitizeVisitor::Options options;
options.allowPartialSanitization = true;
options.forceAutoBindingResolve = true;
options.partialSanitization = true;
options.moduleResolver = graphics->GetShaderModuleResolver();
options.optionValues[CRC32("MaxLightCount")] = SafeCast<UInt32>(PredefinedLightData::MaxLightCount);
options.optionValues[CRC32("MaxJointCount")] = SafeCast<UInt32>(PredefinedSkeletalData::MaxMatricesCount);