Improve linear texture compatibility rules (#2099)
* Improve linear texture compatibility rules Fixes an issue where small or width-aligned (rather than byte aligned) textures would fail to create a view of existing data. Creates a copy dependency as size change may be risky. * Minor cleanup * Remove Size Change for Copy Depenedencies The copy to the target (potentially different sized) texture can properly deal with cropping by itself. * Move StrideAlignment and GobAlignment into Constants
This commit is contained in:
parent
39899c0407
commit
9b7335a63b
5 changed files with 29 additions and 15 deletions
|
@ -69,5 +69,15 @@ namespace Ryujinx.Graphics.Gpu
|
|||
/// Maximum size of gl_ClipDistance array in shaders.
|
||||
/// </summary>
|
||||
public const int TotalClipDistances = 8;
|
||||
|
||||
/// <summary>
|
||||
/// Byte alignment for texture stride.
|
||||
/// </summary>
|
||||
public const int StrideAlignment = 32;
|
||||
|
||||
/// <summary>
|
||||
/// Byte alignment for block linear textures
|
||||
/// </summary>
|
||||
public const int GobAlignment = 64;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue