diff --git a/rpcs3/Emu/RSX/VK/VKGSRender.h b/rpcs3/Emu/RSX/VK/VKGSRender.h index 5ef5157c66..984a2eb074 100644 --- a/rpcs3/Emu/RSX/VK/VKGSRender.h +++ b/rpcs3/Emu/RSX/VK/VKGSRender.h @@ -374,7 +374,7 @@ private: vk::pipeline_props m_pipeline_properties; vk::texture_cache m_texture_cache; - rsx::vk_render_targets m_rtts; + vk::surface_cache m_rtts; std::unique_ptr null_buffer; std::unique_ptr null_buffer_view; diff --git a/rpcs3/Emu/RSX/VK/VKRenderTargets.h b/rpcs3/Emu/RSX/VK/VKRenderTargets.h index 96a0494202..adcd972a60 100644 --- a/rpcs3/Emu/RSX/VK/VKRenderTargets.h +++ b/rpcs3/Emu/RSX/VK/VKRenderTargets.h @@ -64,11 +64,8 @@ namespace vk { return ensure(dynamic_cast(t)); } -} -namespace rsx -{ - struct vk_render_target_traits + struct surface_cache_traits { using surface_storage_type = std::unique_ptr; using surface_type = vk::render_target*; @@ -78,7 +75,7 @@ namespace rsx static std::unique_ptr create_new_surface( u32 address, - surface_color_format format, + rsx::surface_color_format format, usz width, usz height, usz pitch, rsx::surface_antialiasing antialias, vk::render_device &device, vk::command_buffer& cmd) @@ -87,16 +84,16 @@ namespace rsx VkFormat requested_format = fmt.first; u8 samples; - surface_sample_layout sample_layout; + rsx::surface_sample_layout sample_layout; if (g_cfg.video.antialiasing_level == msaa_level::_auto) { samples = get_format_sample_count(antialias); - sample_layout = surface_sample_layout::ps3; + sample_layout = rsx::surface_sample_layout::ps3; } else { samples = 1; - sample_layout = surface_sample_layout::null; + sample_layout = rsx::surface_sample_layout::null; } VkImageUsageFlags usage_flags = VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT; @@ -144,7 +141,7 @@ namespace rsx static std::unique_ptr create_new_surface( u32 address, - surface_depth_format2 format, + rsx::surface_depth_format2 format, usz width, usz height, usz pitch, rsx::surface_antialiasing antialias, vk::render_device &device, vk::command_buffer& cmd) @@ -153,16 +150,16 @@ namespace rsx VkImageUsageFlags usage_flags = VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT | VK_IMAGE_USAGE_SAMPLED_BIT; u8 samples; - surface_sample_layout sample_layout; + rsx::surface_sample_layout sample_layout; if (g_cfg.video.antialiasing_level == msaa_level::_auto) { samples = get_format_sample_count(antialias); - sample_layout = surface_sample_layout::ps3; + sample_layout = rsx::surface_sample_layout::ps3; } else { samples = 1; - sample_layout = surface_sample_layout::null; + sample_layout = rsx::surface_sample_layout::null; } if (samples == 1) [[likely]] @@ -353,7 +350,7 @@ namespace rsx static bool surface_matches_properties( const std::unique_ptr &surface, - surface_color_format format, + rsx::surface_color_format format, usz width, usz height, rsx::surface_antialiasing antialias, bool check_refs = false) @@ -364,7 +361,7 @@ namespace rsx static bool surface_matches_properties( const std::unique_ptr &surface, - surface_depth_format2 format, + rsx::surface_depth_format2 format, usz width, usz height, rsx::surface_antialiasing antialias, bool check_refs = false) @@ -380,7 +377,7 @@ namespace rsx } }; - struct vk_render_targets : public rsx::surface_store + struct surface_cache : public rsx::surface_store { void destroy() { diff --git a/rpcs3/Emu/RSX/VK/VKTextureCache.h b/rpcs3/Emu/RSX/VK/VKTextureCache.h index 2496d82058..f33927c03b 100644 --- a/rpcs3/Emu/RSX/VK/VKTextureCache.h +++ b/rpcs3/Emu/RSX/VK/VKTextureCache.h @@ -1260,7 +1260,7 @@ namespace vk return result; } - bool blit(rsx::blit_src_info& src, rsx::blit_dst_info& dst, bool interpolate, rsx::vk_render_targets& m_rtts, vk::command_buffer& cmd) + bool blit(rsx::blit_src_info& src, rsx::blit_dst_info& dst, bool interpolate, vk::surface_cache& m_rtts, vk::command_buffer& cmd) { blitter helper; auto reply = upload_scaled_image(src, dst, interpolate, cmd, m_rtts, helper);