GuestTextureDescriptor.cs 505 B

123456789101112131415
  1. using Ryujinx.Graphics.Gpu.Image;
  2. using System.Runtime.InteropServices;
  3. namespace Ryujinx.Graphics.Gpu.Shader.Cache.Definition
  4. {
  5. /// <summary>
  6. /// Mostly identical to TextureDescriptor from <see cref="Image"/> but we don't store the address of the texture and store its handle instead.
  7. /// </summary>
  8. [StructLayout(LayoutKind.Sequential, Size = 0x20, Pack = 1)]
  9. struct GuestTextureDescriptor
  10. {
  11. public uint Handle;
  12. internal TextureDescriptor Descriptor;
  13. }
  14. }