Browse Source

build fix

pull/2798/head
Ribbit 5 months ago
committed by crueter
parent
commit
e1a2bfde5d
  1. 5
      src/video_core/renderer_vulkan/vk_render_pass_cache.cpp

5
src/video_core/renderer_vulkan/vk_render_pass_cache.cpp

@ -50,11 +50,6 @@ using VideoCore::Surface::SurfaceType;
const SurfaceType surface_type = GetSurfaceType(format); const SurfaceType surface_type = GetSurfaceType(format);
const bool has_stencil = surface_type == SurfaceType::DepthStencil || const bool has_stencil = surface_type == SurfaceType::DepthStencil ||
surface_type == SurfaceType::Stencil; surface_type == SurfaceType::Stencil;
const VkImageLayout attachment_layout =
surface_type == SurfaceType::ColorTexture
? VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL
: VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL;
return { return {
.flags = {}, .flags = {},
.format = SurfaceFormat(device, FormatType::Optimal, true, format).format, .format = SurfaceFormat(device, FormatType::Optimal, true, format).format,

Loading…
Cancel
Save