mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-05 19:49:59 +02:00
Vulkan: Add A8B8G8R8 texture format
Co-authored-by: Stossy11 <stossy11@stossy11.com>
This commit is contained in:
@@ -361,6 +361,7 @@ namespace Ryujinx.Graphics.Gpu.Image
|
||||
A2B10G10R10Sint = (A2B10G10R10 << 21) | (Sint << 27), // 0x1e000000
|
||||
A2B10G10R10Uscaled = (A2B10G10R10 << 21) | (Uscaled << 27), // 0x2e000000
|
||||
A2B10G10R10Sscaled = (A2B10G10R10 << 21) | (Sscaled << 27), // 0x36000000
|
||||
A8B8G8R8Uint = (A8B8G8R8 << 21) | (Uint << 27), // 0x25e00040
|
||||
}
|
||||
|
||||
private static readonly Dictionary<TextureFormat, FormatInfo> _textureFormats = new()
|
||||
@@ -556,6 +557,7 @@ namespace Ryujinx.Graphics.Gpu.Image
|
||||
{ VertexAttributeFormat.A2B10G10R10Sint, Format.R10G10B10A2Sint },
|
||||
{ VertexAttributeFormat.A2B10G10R10Uscaled, Format.R10G10B10A2Uscaled },
|
||||
{ VertexAttributeFormat.A2B10G10R10Sscaled, Format.R10G10B10A2Sscaled },
|
||||
{ VertexAttributeFormat.A8B8G8R8Uint, Format.A8B8G8R8Uint },
|
||||
};
|
||||
#pragma warning restore IDE0055
|
||||
|
||||
|
||||
Reference in New Issue
Block a user