mirror of
https://github.com/azahar-emu/azahar.git
synced 2026-06-05 18:23:39 -04:00
renderer_vulkan: Fix multisample texture init barrier
Should address the MultiSampled image directly since the multisampled image is just a transient image and not the leading state of the image.
This commit is contained in:
parent
88ded6e8c2
commit
fa97aaade4
1 changed files with 2 additions and 2 deletions
|
|
@ -1270,8 +1270,8 @@ void Surface::ScaleUp(u32 new_scale, u8 new_sample_count) {
|
|||
sample_count = new_sample_count;
|
||||
|
||||
runtime.renderpass_cache.EndRendering();
|
||||
scheduler.Record(
|
||||
[raw_images = std::array{Image()}, aspect = traits.aspect](vk::CommandBuffer cmdbuf) {
|
||||
scheduler.Record([raw_images = std::array{Image(Type::MultiSampled)},
|
||||
aspect = traits.aspect](vk::CommandBuffer cmdbuf) {
|
||||
std::array<vk::ImageMemoryBarrier, 1> barriers;
|
||||
MakeInitBarriers(aspect, 1, raw_images, barriers);
|
||||
cmdbuf.pipelineBarrier(vk::PipelineStageFlagBits::eTopOfPipe,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue