diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2021-06-24 19:54:50 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-25 00:54:50 +0200 |
| commit | ed2f5ede0f8d8f58390745f5e237bbfea36397fe (patch) | |
| tree | a197861cf93d1e279a288fe0be32aa43cae5cb9a /Ryujinx.Graphics.Gpu | |
| parent | eac659e37bf2ad8398a959c91f7b30017e4ad7f3 (diff) | |
Fix texture sampling with depth compare and LOD level or bias (#2404)
* Fix texture sampling with depth compare and LOD level or bias
* Shader cache version bump
* nit: Sorting
Diffstat (limited to 'Ryujinx.Graphics.Gpu')
| -rw-r--r-- | Ryujinx.Graphics.Gpu/Shader/GpuAccessor.cs | 6 | ||||
| -rw-r--r-- | Ryujinx.Graphics.Gpu/Shader/ShaderCache.cs | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Gpu/Shader/GpuAccessor.cs b/Ryujinx.Graphics.Gpu/Shader/GpuAccessor.cs index 75ff037e..4381301b 100644 --- a/Ryujinx.Graphics.Gpu/Shader/GpuAccessor.cs +++ b/Ryujinx.Graphics.Gpu/Shader/GpuAccessor.cs @@ -181,6 +181,12 @@ namespace Ryujinx.Graphics.Gpu.Shader public bool QuerySupportsNonConstantTextureOffset() => _context.Capabilities.SupportsNonConstantTextureOffset; /// <summary> + /// Queries host GPU texture shadow LOD support. + /// </summary> + /// <returns>True if the GPU and driver supports texture shadow LOD, false otherwise</returns> + public bool QuerySupportsTextureShadowLod() => _context.Capabilities.SupportsTextureShadowLod; + + /// <summary> /// Gets the texture descriptor for a given texture on the pool. /// </summary> /// <param name="handle">Index of the texture (this is the word offset of the handle in the constant buffer)</param> diff --git a/Ryujinx.Graphics.Gpu/Shader/ShaderCache.cs b/Ryujinx.Graphics.Gpu/Shader/ShaderCache.cs index f9ad0ad2..6813a440 100644 --- a/Ryujinx.Graphics.Gpu/Shader/ShaderCache.cs +++ b/Ryujinx.Graphics.Gpu/Shader/ShaderCache.cs @@ -36,7 +36,7 @@ namespace Ryujinx.Graphics.Gpu.Shader /// <summary> /// Version of the codegen (to be changed when codegen or guest format change). /// </summary> - private const ulong ShaderCodeGenVersion = 2397; + private const ulong ShaderCodeGenVersion = 2404; // Progress reporting helpers private volatile int _shaderCount; |
