Group descriptor sets by binding frequency (#2892)

This commit is contained in:
Adrian Cojocaru
2024-10-16 18:31:15 +03:00
committed by GitHub
parent e937b0d555
commit b29c9967da
90 changed files with 908 additions and 562 deletions

View File

@@ -71,15 +71,5 @@ void RenderPass::addDebugSignpost(const char* name) {
commandEncoder.getContext().getBackend().insertDebugLabel(commandEncoder.getCommandBuffer().get(), name);
}
void RenderPass::bindVertex(const BufferResource& buf, std::size_t offset, std::size_t, std::size_t size) {
[[maybe_unused]] const auto actualSize = size ? size : buf.getSizeInBytes() - offset;
assert(actualSize <= buf.getSizeInBytes());
}
void RenderPass::bindFragment(const BufferResource& buf, std::size_t offset, std::size_t, std::size_t size) {
[[maybe_unused]] const auto actualSize = size ? size : buf.getSizeInBytes() - offset;
assert(actualSize <= buf.getSizeInBytes());
}
} // namespace vulkan
} // namespace mbgl