Skip to content

Commit

Permalink
Fix validation error with SDK 1.3.283.
Browse files Browse the repository at this point in the history
  • Loading branch information
overdesigned committed May 17, 2024
1 parent d4e6f9f commit e2eaf97
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/gui/test_mrt_viewport_clear_vk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,6 @@ protected :

VkCommandBuffer cmdBuf = rpsVKCommandBufferFromHandle(pContext->hCommandBuffer);

vkCmdBindPipeline(cmdBuf, VK_PIPELINE_BIND_POINT_GRAPHICS, m_psoBlt);

VkDescriptorSet ds;
ThrowIfFailedVK(AllocFrameDescriptorSet(&m_descriptorSetLayout, 1, &ds));

Expand Down Expand Up @@ -363,6 +361,7 @@ protected :
vkUpdateDescriptorSets(m_device, _countof(writeDescriptorSet), writeDescriptorSet, 0, nullptr);

vkCmdBindDescriptorSets(cmdBuf, VK_PIPELINE_BIND_POINT_GRAPHICS, m_pipelineLayout, 0, 1, &ds, 0, nullptr);
vkCmdBindPipeline(cmdBuf, VK_PIPELINE_BIND_POINT_GRAPHICS, m_psoBlt);
vkCmdDraw(cmdBuf, 3, 1, 0, 0);
}

Expand Down Expand Up @@ -391,8 +390,6 @@ protected :

VkCommandBuffer cmdBuf = rpsVKCommandBufferFromHandle(pContext->hCommandBuffer);

vkCmdBindPipeline(cmdBuf, VK_PIPELINE_BIND_POINT_GRAPHICS, m_psoBltCube);

VkDescriptorSet ds;
ThrowIfFailedVK(AllocFrameDescriptorSet(&m_descriptorSetLayout, 1, &ds));

Expand All @@ -404,6 +401,7 @@ protected :
vkUpdateDescriptorSets(m_device, _countof(writeDescriptorSet), writeDescriptorSet, 0, nullptr);

vkCmdBindDescriptorSets(cmdBuf, VK_PIPELINE_BIND_POINT_GRAPHICS, m_pipelineLayout, 0, 1, &ds, 0, nullptr);
vkCmdBindPipeline(cmdBuf, VK_PIPELINE_BIND_POINT_GRAPHICS, m_psoBltCube);
vkCmdDraw(cmdBuf, 3, 1, 0, 0);
}

Expand Down

0 comments on commit e2eaf97

Please sign in to comment.