early-access version 3916

main
pineappleEA 2023-10-09 00:53:21 +02:00
parent ea1c1d9b88
commit 9d6e12aaf3
2 changed files with 10 additions and 9 deletions

View File

@ -1,7 +1,7 @@
yuzu emulator early access yuzu emulator early access
============= =============
This is the source code for early-access 3915. This is the source code for early-access 3916.
## Legal Notice ## Legal Notice

View File

@ -618,14 +618,15 @@ void BlitImageHelper::ClearDepthStencil(const Framebuffer* dst_framebuffer, bool
const VkPipeline pipeline = FindOrEmplaceClearStencilPipeline(key); const VkPipeline pipeline = FindOrEmplaceClearStencilPipeline(key);
const VkPipelineLayout layout = *clear_color_pipeline_layout; const VkPipelineLayout layout = *clear_color_pipeline_layout;
scheduler.RequestRenderpass(dst_framebuffer); scheduler.RequestRenderpass(dst_framebuffer);
scheduler.Record([pipeline, layout, clear_depth, dst_region](vk::CommandBuffer cmdbuf, vk::CommandBuffer) { scheduler.Record(
constexpr std::array blend_constants{0.0f, 0.0f, 0.0f, 0.0f}; [pipeline, layout, clear_depth, dst_region](vk::CommandBuffer cmdbuf, vk::CommandBuffer) {
cmdbuf.SetBlendConstants(blend_constants.data()); constexpr std::array blend_constants{0.0f, 0.0f, 0.0f, 0.0f};
cmdbuf.BindPipeline(VK_PIPELINE_BIND_POINT_GRAPHICS, pipeline); cmdbuf.SetBlendConstants(blend_constants.data());
BindBlitState(cmdbuf, dst_region); cmdbuf.BindPipeline(VK_PIPELINE_BIND_POINT_GRAPHICS, pipeline);
cmdbuf.PushConstants(layout, VK_SHADER_STAGE_FRAGMENT_BIT, clear_depth); BindBlitState(cmdbuf, dst_region);
cmdbuf.Draw(3, 1, 0, 0); cmdbuf.PushConstants(layout, VK_SHADER_STAGE_FRAGMENT_BIT, clear_depth);
}); cmdbuf.Draw(3, 1, 0, 0);
});
scheduler.InvalidateState(); scheduler.InvalidateState();
} }