Add GetDevice function instead of accessing device member directly

This commit is contained in:
Magnus Norddahl 2023-04-16 17:07:55 +02:00
commit 184e73ab28
16 changed files with 139 additions and 142 deletions

View file

@ -560,7 +560,7 @@ void VkRenderState::BeginRenderPass(VulkanCommandBuffer *cmdbuffer)
if (key.DepthStencil)
builder.AddAttachment(mRenderTarget.DepthStencil);
builder.DebugName("VkRenderPassSetup.Framebuffer");
framebuffer = builder.Create(fb->device.get());
framebuffer = builder.Create(fb->GetDevice());
}
// Only clear depth+stencil if the render target actually has that