Implement a software ETC2 texture decoder (#4121)
* Implement a software ETC2 texture decoder * Fix output size calculation for non-2D textures * Address PR feedback
This commit is contained in:
parent
219f63ff4e
commit
f906eb06c2
8 changed files with 763 additions and 10 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue