Remove legacy object-id and depth-style binding fallbacks
This commit is contained in:
@@ -243,9 +243,14 @@ bool BuiltinObjectIdPass::CreateResources(const RenderContext& context) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Containers::Array<Resources::ShaderResourceBindingDesc> resourceBindings = objectIdPass->resources;
|
||||
const Containers::Array<Resources::ShaderResourceBindingDesc>& resourceBindings = objectIdPass->resources;
|
||||
if (resourceBindings.Empty()) {
|
||||
resourceBindings = BuildLegacyBuiltinObjectIdPassResourceBindings();
|
||||
Debug::Logger::Get().Error(
|
||||
Debug::LogCategory::Rendering,
|
||||
(Containers::String("BuiltinObjectIdPass requires explicit resource bindings on shader pass: ") +
|
||||
objectIdPass->name).CStr());
|
||||
DestroyResources();
|
||||
return false;
|
||||
}
|
||||
|
||||
BuiltinPassResourceBindingPlan bindingPlan = {};
|
||||
|
||||
Reference in New Issue
Block a user