diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2022-01-20 08:37:21 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-20 08:37:21 -0300 |
| commit | 0e59573f2b55420c2c3fcfc3aaad56dba70e1492 (patch) | |
| tree | 4364a01b9cb9d0b4e417a4a631d4ea36862a4e49 /Ryujinx.Graphics.Gpu | |
| parent | 60f7cba30abb69e9c197f1def10c102f0c19758b (diff) | |
Add capability for BGRA formats (#3011)
Diffstat (limited to 'Ryujinx.Graphics.Gpu')
| -rw-r--r-- | Ryujinx.Graphics.Gpu/Shader/TextureDescriptorCapableGpuAccessor.cs | 6 |
1 files changed, 6 insertions, 0 deletions
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 @@ -37,6 +37,12 @@ namespace Ryujinx.Graphics.Gpu.Shader public int QueryHostStorageBufferOffsetAlignment() => _context.Capabilities.StorageBufferOffsetAlignment; /// <summary> + /// Queries host support for texture formats with BGRA component order (such as BGRA8). + /// </summary> + /// <returns>True if BGRA formats are supported, false otherwise</returns> + public bool QueryHostSupportsBgraFormat() => _context.Capabilities.SupportsBgraFormat; + + /// <summary> /// Queries host support for fragment shader ordering critical sections on the shader code. /// </summary> /// <returns>True if fragment shader interlock is supported, false otherwise</returns> |
