From 0e59573f2b55420c2c3fcfc3aaad56dba70e1492 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Thu, 20 Jan 2022 08:37:21 -0300 Subject: Add capability for BGRA formats (#3011) --- Ryujinx.Graphics.Gpu/Shader/TextureDescriptorCapableGpuAccessor.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Ryujinx.Graphics.Gpu/Shader') diff --git a/Ryujinx.Graphics.Gpu/Shader/TextureDescriptorCapableGpuAccessor.cs b/Ryujinx.Graphics.Gpu/Shader/TextureDescriptorCapableGpuAccessor.cs index 50039a90..3a8ee67a 100644 --- a/Ryujinx.Graphics.Gpu/Shader/TextureDescriptorCapableGpuAccessor.cs +++ b/Ryujinx.Graphics.Gpu/Shader/TextureDescriptorCapableGpuAccessor.cs @@ -36,6 +36,12 @@ namespace Ryujinx.Graphics.Gpu.Shader /// Host storage buffer alignment in bytes public int QueryHostStorageBufferOffsetAlignment() => _context.Capabilities.StorageBufferOffsetAlignment; + /// + /// Queries host support for texture formats with BGRA component order (such as BGRA8). + /// + /// True if BGRA formats are supported, false otherwise + public bool QueryHostSupportsBgraFormat() => _context.Capabilities.SupportsBgraFormat; + /// /// Queries host support for fragment shader ordering critical sections on the shader code. /// -- cgit v1.2.3