UBO consolidation (#3089)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Alex Cristici
2025-01-08 17:41:29 +02:00
committed by GitHub
parent cf9f41cf61
commit f582327191
262 changed files with 6968 additions and 6928 deletions

View File

@@ -253,6 +253,13 @@ void Drawable::draw(PaintParameters& parameters) const {
if (!bindAttributes(encoder)) return;
if (!bindDescriptors(encoder)) return;
commandBuffer->pushConstants(
context.getGeneralPipelineLayout().get(),
vk::ShaderStageFlags() | vk::ShaderStageFlagBits::eVertex | vk::ShaderStageFlagBits::eFragment,
0,
sizeof(uboIndex),
&uboIndex);
if (is3D) {
impl->pipelineInfo.setDepthMode(impl->depthFor3D);
impl->pipelineInfo.setStencilMode(impl->stencilFor3D);