mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-30 01:29:48 -06:00
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:
@ -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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user