From f906eb06c28880c20160cb4a969e3f6fddb3029b Mon Sep 17 00:00:00 2001 From: gdkchan Date: Wed, 21 Dec 2022 20:39:58 -0300 Subject: Implement a software ETC2 texture decoder (#4121) * Implement a software ETC2 texture decoder * Fix output size calculation for non-2D textures * Address PR feedback --- Ryujinx.Graphics.Vulkan/VulkanRenderer.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Ryujinx.Graphics.Vulkan/VulkanRenderer.cs') diff --git a/Ryujinx.Graphics.Vulkan/VulkanRenderer.cs b/Ryujinx.Graphics.Vulkan/VulkanRenderer.cs index fa9d4cb0..a32400f5 100644 --- a/Ryujinx.Graphics.Vulkan/VulkanRenderer.cs +++ b/Ryujinx.Graphics.Vulkan/VulkanRenderer.cs @@ -388,6 +388,13 @@ namespace Ryujinx.Graphics.Vulkan GAL.Format.Bc7Srgb, GAL.Format.Bc7Unorm); + bool supportsEtc2CompressionFormat = FormatCapabilities.OptimalFormatsSupport(compressedFormatFeatureFlags, + GAL.Format.Etc2RgbaSrgb, + GAL.Format.Etc2RgbaUnorm, + GAL.Format.Etc2RgbPtaSrgb, + GAL.Format.Etc2RgbPtaUnorm, + GAL.Format.Etc2RgbSrgb, + GAL.Format.Etc2RgbUnorm); PhysicalDeviceVulkan12Features featuresVk12 = new PhysicalDeviceVulkan12Features() { @@ -414,6 +421,7 @@ namespace Ryujinx.Graphics.Vulkan supportsBc123Compression: supportsBc123CompressionFormat, supportsBc45Compression: supportsBc45CompressionFormat, supportsBc67Compression: supportsBc67CompressionFormat, + supportsEtc2Compression: supportsEtc2CompressionFormat, supports3DTextureCompression: true, supportsBgraFormat: true, supportsR4G4Format: false, -- cgit v1.2.3