mirror of
https://github.com/GreemDev/Ryujinx
synced 2024-12-23 12:26:35 +01:00
726de8c46a
* Add multiple color outputs for fragment shaders * Add registers and gal enums * Use textures for framebuffers and split color and zeta framebuffers * Abstract texture and framebuffer targets as an image * Share images between framebuffers and textures * Unstub formats * Add some formats * Disable multiple attachments * Cache framebuffer attachments * Handle format types * Add some rendertarget formats * Code cleanup * Fixup half float types * Address feedback * Disable multiple attachments in shaders * Add A4B4G4R4 image format * Add reversed section for image enums
33 lines
No EOL
983 B
C#
33 lines
No EOL
983 B
C#
namespace Ryujinx.Graphics.Gal
|
|
{
|
|
public struct GalImage
|
|
{
|
|
public int Width;
|
|
public int Height;
|
|
|
|
public GalImageFormat Format;
|
|
|
|
public GalTextureSource XSource;
|
|
public GalTextureSource YSource;
|
|
public GalTextureSource ZSource;
|
|
public GalTextureSource WSource;
|
|
|
|
public GalImage(
|
|
int Width,
|
|
int Height,
|
|
GalImageFormat Format,
|
|
GalTextureSource XSource = GalTextureSource.Red,
|
|
GalTextureSource YSource = GalTextureSource.Green,
|
|
GalTextureSource ZSource = GalTextureSource.Blue,
|
|
GalTextureSource WSource = GalTextureSource.Alpha)
|
|
{
|
|
this.Width = Width;
|
|
this.Height = Height;
|
|
this.Format = Format;
|
|
this.XSource = XSource;
|
|
this.YSource = YSource;
|
|
this.ZSource = ZSource;
|
|
this.WSource = WSource;
|
|
}
|
|
}
|
|
} |