Skip to content

Commit

Permalink
Fix some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
godlikepanos committed Jun 14, 2024
1 parent 9b42d1f commit 64e599d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion AnKi/Gr/Vulkan/VkCommandBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<self.getBoundProgram()>(prog).getReflection().m_descriptor.m_pushConstantsSize == dataSize
ANKI_ASSERT(static_cast<const ShaderProgramImpl&>(self.getBoundProgram()).getReflection().m_descriptor.m_pushConstantsSize == dataSize
&& "The bound program should have push constants equal to the \"dataSize\" parameter");

self.commandCommon();
Expand Down
2 changes: 1 addition & 1 deletion AnKi/Renderer/FinalComposite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 64e599d

Please sign in to comment.