Texture/Vertex/Index data cache (#132)
* 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
This commit is contained in:
parent
6fe51f9705
commit
231fae1a4c
28 changed files with 837 additions and 819 deletions
|
@ -2,8 +2,6 @@ namespace Ryujinx.Graphics.Gal
|
|||
{
|
||||
public struct GalTexture
|
||||
{
|
||||
public byte[] Data;
|
||||
|
||||
public int Width;
|
||||
public int Height;
|
||||
|
||||
|
@ -15,7 +13,6 @@ namespace Ryujinx.Graphics.Gal
|
|||
public GalTextureSource WSource;
|
||||
|
||||
public GalTexture(
|
||||
byte[] Data,
|
||||
int Width,
|
||||
int Height,
|
||||
GalTextureFormat Format,
|
||||
|
@ -24,7 +21,6 @@ namespace Ryujinx.Graphics.Gal
|
|||
GalTextureSource ZSource,
|
||||
GalTextureSource WSource)
|
||||
{
|
||||
this.Data = Data;
|
||||
this.Width = Width;
|
||||
this.Height = Height;
|
||||
this.Format = Format;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue