mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-20 20:49:12 +12:00
Fix display drawing
Disable depth-testing, the display vertex-shader, and the viewport/scissor positioning of the bottom screen. We have visual!
This commit is contained in:
parent
e4195d4d4d
commit
57ee0a3db9
2 changed files with 6 additions and 22 deletions
|
@ -140,8 +140,8 @@ std::tuple<vk::UniquePipeline, vk::UniquePipelineLayout> createGraphicsPipeline(
|
|||
|
||||
vk::PipelineDepthStencilStateCreateInfo depthStencilState = {};
|
||||
|
||||
depthStencilState.depthTestEnable = true;
|
||||
depthStencilState.depthWriteEnable = true;
|
||||
depthStencilState.depthTestEnable = false;
|
||||
depthStencilState.depthWriteEnable = false;
|
||||
depthStencilState.depthCompareOp = vk::CompareOp::eLessOrEqual;
|
||||
depthStencilState.depthBoundsTestEnable = false;
|
||||
depthStencilState.stencilTestEnable = false;
|
||||
|
@ -715,8 +715,8 @@ void RendererVK::display() {
|
|||
vk::PipelineBindPoint::eGraphics, displayPipelineLayout.get(), 0, {bottomDisplayPipelineDescriptorSet[frameBufferingIndex]}, {}
|
||||
);
|
||||
getCurrentCommandBuffer().bindPipeline(vk::PipelineBindPoint::eGraphics, displayPipeline.get());
|
||||
getCurrentCommandBuffer().setViewport(0, vk::Viewport(40, 0, 320, 240));
|
||||
getCurrentCommandBuffer().setScissor(0, vk::Rect2D({40, 0}, {320, 240}));
|
||||
getCurrentCommandBuffer().setViewport(0, vk::Viewport(40, 240, 320, 240));
|
||||
getCurrentCommandBuffer().setScissor(0, vk::Rect2D({40, 240}, {320, 240}));
|
||||
getCurrentCommandBuffer().draw(3, 1, 0, 0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue