mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-23 21:42:02 +00:00
231fae1a4c
* 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
No EOL
892 B
C#
33 lines
No EOL
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;
|
|
}
|
|
}
|
|
} |