From 64e599d4a2ba0dcc26d901a0ee197591315db225 Mon Sep 17 00:00:00 2001 From: Panagiotis Christopoulos Charitos Date: Fri, 14 Jun 2024 20:34:00 +0200 Subject: [PATCH] Fix some bugs --- AnKi/Gr/Vulkan/VkCommandBuffer.cpp | 2 +- AnKi/Renderer/FinalComposite.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AnKi/Gr/Vulkan/VkCommandBuffer.cpp b/AnKi/Gr/Vulkan/VkCommandBuffer.cpp index be6d67eea..5e41f7269 100644 --- a/AnKi/Gr/Vulkan/VkCommandBuffer.cpp +++ b/AnKi/Gr/Vulkan/VkCommandBuffer.cpp @@ -1087,7 +1087,7 @@ void CommandBuffer::setPushConstants(const void* data, U32 dataSize) { ANKI_VK_SELF(CommandBufferImpl); ANKI_ASSERT(data && dataSize && dataSize % 16 == 0); - ANKI_ASSERT(static_cast(prog).getReflection().m_descriptor.m_pushConstantsSize == dataSize + ANKI_ASSERT(static_cast(self.getBoundProgram()).getReflection().m_descriptor.m_pushConstantsSize == dataSize && "The bound program should have push constants equal to the \"dataSize\" parameter"); self.commandCommon(); diff --git a/AnKi/Renderer/FinalComposite.cpp b/AnKi/Renderer/FinalComposite.cpp index c2bff0f52..27f626911 100644 --- a/AnKi/Renderer/FinalComposite.cpp +++ b/AnKi/Renderer/FinalComposite.cpp @@ -156,7 +156,7 @@ void FinalComposite::run(RenderPassWorkContext& rgraphCtx) { cmdb.bindSampler(ANKI_REG(s0), getRenderer().getSamplers().m_nearestNearestClamp.get()); - U32 count = 1; + U32 count = 0; for(const RenderTargetHandle& handle : dbgRts) { if(handle.isValid())