[Vulkan] Unsubsample odd-sized 4:2:2 textures

This commit is contained in:
Triang3l
2022-06-02 23:10:50 +03:00
parent 1ce45ee150
commit a8cfe9bebb
2 changed files with 60 additions and 6 deletions

View File

@@ -236,6 +236,8 @@ class VulkanTextureCache final : public TextureCache {
bool Initialize();
const HostFormatPair& GetHostFormatPair(TextureKey key) const;
void GetTextureUsageMasks(VulkanTexture::Usage usage,
VkPipelineStageFlags& stage_mask,
VkAccessFlags& access_mask, VkImageLayout& layout);
@@ -244,6 +246,8 @@ class VulkanTextureCache final : public TextureCache {
VkPipelineStageFlags guest_shader_pipeline_stages_;
static const HostFormatPair kBestHostFormats[64];
static const HostFormatPair kHostFormatGBGRUnaligned;
static const HostFormatPair kHostFormatBGRGUnaligned;
HostFormatPair host_formats_[64];
VkPipelineLayout load_pipeline_layout_ = VK_NULL_HANDLE;