mirror of
https://github.com/GreemDev/Ryujinx
synced 2024-12-12 03:00:00 +01:00
4da44e09cb
* Make all structs readonly when applicable. It should reduce amount of needless defensive copies * Make structs with trivial boilerplate equality code record structs * Remove unnecessary readonly modifiers from TextureCreateInfo * Make BitMap structs readonly too
22 lines
No EOL
625 B
C#
22 lines
No EOL
625 B
C#
namespace Ryujinx.Graphics.GAL
|
|
{
|
|
public readonly struct ScreenCaptureImageInfo
|
|
{
|
|
public ScreenCaptureImageInfo(int width, int height, bool isBgra, byte[] data, bool flipX, bool flipY)
|
|
{
|
|
Width = width;
|
|
Height = height;
|
|
IsBgra = isBgra;
|
|
Data = data;
|
|
FlipX = flipX;
|
|
FlipY = flipY;
|
|
}
|
|
|
|
public int Width { get; }
|
|
public int Height { get; }
|
|
public byte[] Data { get; }
|
|
public bool IsBgra { get; }
|
|
public bool FlipX { get; }
|
|
public bool FlipY { get; }
|
|
}
|
|
} |