mirror of
https://github.com/love2d/love.git
synced 2026-08-20 12:40:20 +02:00
vulkan: fix validation errors when a resource is declared in multiple stages.
This commit is contained in:
@@ -69,7 +69,17 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return (uint32_t)it->second.getOffset();
|
{
|
||||||
|
auto binding = (uint32_t)it->second.getOffset();
|
||||||
|
|
||||||
|
uint32_t binaryBindingOffset;
|
||||||
|
if (!comp.get_binary_offset_for_decoration(id, spv::DecorationBinding, binaryBindingOffset))
|
||||||
|
throw love::Exception("could not get binary offset for uniform %s binding", name.c_str());
|
||||||
|
|
||||||
|
spirv[binaryBindingOffset] = binding;
|
||||||
|
|
||||||
|
return binding;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user