diff options
| author | TSR Berry <20988865+TSRBerry@users.noreply.github.com> | 2023-04-08 01:22:00 +0200 |
|---|---|---|
| committer | Mary <thog@protonmail.com> | 2023-04-27 23:51:14 +0200 |
| commit | cee712105850ac3385cd0091a923438167433f9f (patch) | |
| tree | 4a5274b21d8b7f938c0d0ce18736d3f2993b11b1 /Ryujinx.Graphics.Gpu/Image/FormatInfo.cs | |
| parent | cd124bda587ef09668a971fa1cac1c3f0cfc9f21 (diff) | |
Move solution and projects to src
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Image/FormatInfo.cs')
| -rw-r--r-- | Ryujinx.Graphics.Gpu/Image/FormatInfo.cs | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/Ryujinx.Graphics.Gpu/Image/FormatInfo.cs b/Ryujinx.Graphics.Gpu/Image/FormatInfo.cs deleted file mode 100644 index 9ee649d2..00000000 --- a/Ryujinx.Graphics.Gpu/Image/FormatInfo.cs +++ /dev/null @@ -1,72 +0,0 @@ -using Ryujinx.Graphics.GAL; - -namespace Ryujinx.Graphics.Gpu.Image -{ - /// <summary> - /// Represents texture format information. - /// </summary> - readonly struct FormatInfo - { - /// <summary> - /// A default, generic RGBA8 texture format. - /// </summary> - public static FormatInfo Default { get; } = new FormatInfo(Format.R8G8B8A8Unorm, 1, 1, 4, 4); - - /// <summary> - /// The format of the texture data. - /// </summary> - public Format Format { get; } - - /// <summary> - /// The block width for compressed formats. - /// </summary> - /// <remarks> - /// Must be 1 for non-compressed formats. - /// </remarks> - public int BlockWidth { get; } - - /// <summary> - /// The block height for compressed formats. - /// </summary> - /// <remarks> - /// Must be 1 for non-compressed formats. - /// </remarks> - public int BlockHeight { get; } - - /// <summary> - /// The number of bytes occupied by a single pixel in memory of the texture data. - /// </summary> - public int BytesPerPixel { get; } - - /// <summary> - /// The maximum number of components this format has defined (in RGBA order). - /// </summary> - public int Components { get; } - - /// <summary> - /// Whenever or not the texture format is a compressed format. Determined from block size. - /// </summary> - public bool IsCompressed => (BlockWidth | BlockHeight) != 1; - - /// <summary> - /// Constructs the texture format info structure. - /// </summary> - /// <param name="format">The format of the texture data</param> - /// <param name="blockWidth">The block width for compressed formats. Must be 1 for non-compressed formats</param> - /// <param name="blockHeight">The block height for compressed formats. Must be 1 for non-compressed formats</param> - /// <param name="bytesPerPixel">The number of bytes occupied by a single pixel in memory of the texture data</param> - public FormatInfo( - Format format, - int blockWidth, - int blockHeight, - int bytesPerPixel, - int components) - { - Format = format; - BlockWidth = blockWidth; - BlockHeight = blockHeight; - BytesPerPixel = bytesPerPixel; - Components = components; - } - } -}
\ No newline at end of file |
