diff options
author | gdkchan <gab.dark.100@gmail.com> | 2022-06-23 21:41:57 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-24 02:41:57 +0200 |
commit | e747f5cd836b73661414134b182fc50121e56865 (patch) | |
tree | efaea2ff6ea098ed4f1e0dca35a421020f57ac52 /Ryujinx.Graphics.Gpu/Image/TextureDescriptor.cs | |
parent | 8aff17a93c27dea7339c20f9cf73535e110ffb72 (diff) |
Ensure texture ID is valid before getting texture descriptor (#3406)1.1.154
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Image/TextureDescriptor.cs')
-rw-r--r-- | Ryujinx.Graphics.Gpu/Image/TextureDescriptor.cs | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/Ryujinx.Graphics.Gpu/Image/TextureDescriptor.cs b/Ryujinx.Graphics.Gpu/Image/TextureDescriptor.cs index 62862e74..73b1232e 100644 --- a/Ryujinx.Graphics.Gpu/Image/TextureDescriptor.cs +++ b/Ryujinx.Graphics.Gpu/Image/TextureDescriptor.cs @@ -242,25 +242,6 @@ namespace Ryujinx.Graphics.Gpu.Image } /// <summary> - /// Create the equivalent of this TextureDescriptor for the shader cache. - /// </summary> - /// <returns>The equivalent of this TextureDescriptor for the shader cache.</returns> - public GuestTextureDescriptor ToCache() - { - GuestTextureDescriptor result = new GuestTextureDescriptor - { - Handle = uint.MaxValue, - Format = UnpackFormat(), - Target = UnpackTextureTarget(), - IsSrgb = UnpackSrgb(), - IsTextureCoordNormalized = UnpackTextureCoordNormalized(), - - }; - - return result; - } - - /// <summary> /// Check if two descriptors are equal. /// </summary> /// <param name="other">The descriptor to compare against</param> |