mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-08-16 13:48:42 +02:00
* Initial implementation of the texture cache * Cache vertex and index data aswell, some cleanup * Improve handling of the cache by storing cached ranges on a list for each page * Delete old data from the caches automatically, ensure that the cache is cleaned when the mapping/size changes, and some general cleanup
33 lines
892 B
C#
33 lines
892 B
C#
namespace Ryujinx.Graphics.Gal
|
|
{
|
|
public struct GalTexture
|
|
{
|
|
public int Width;
|
|
public int Height;
|
|
|
|
public GalTextureFormat Format;
|
|
|
|
public GalTextureSource XSource;
|
|
public GalTextureSource YSource;
|
|
public GalTextureSource ZSource;
|
|
public GalTextureSource WSource;
|
|
|
|
public GalTexture(
|
|
int Width,
|
|
int Height,
|
|
GalTextureFormat Format,
|
|
GalTextureSource XSource,
|
|
GalTextureSource YSource,
|
|
GalTextureSource ZSource,
|
|
GalTextureSource WSource)
|
|
{
|
|
this.Width = Width;
|
|
this.Height = Height;
|
|
this.Format = Format;
|
|
this.XSource = XSource;
|
|
this.YSource = YSource;
|
|
this.ZSource = ZSource;
|
|
this.WSource = WSource;
|
|
}
|
|
}
|
|
} |