GuestCodeAndCbData.cs 927 B

12345678910111213141516171819202122232425262728293031
  1. using Ryujinx.Graphics.Shader;
  2. namespace Ryujinx.Graphics.Gpu.Shader.DiskCache
  3. {
  4. /// <summary>
  5. /// Guest shader code and constant buffer data accessed by the shader.
  6. /// </summary>
  7. struct GuestCodeAndCbData
  8. {
  9. /// <summary>
  10. /// Maxwell binary shader code.
  11. /// </summary>
  12. public byte[] Code { get; }
  13. /// <summary>
  14. /// Constant buffer 1 data accessed by the shader.
  15. /// </summary>
  16. public byte[] Cb1Data { get; }
  17. /// <summary>
  18. /// Creates a new instance of the guest shader code and constant buffer data.
  19. /// </summary>
  20. /// <param name="code">Maxwell binary shader code</param>
  21. /// <param name="cb1Data">Constant buffer 1 data accessed by the shader</param>
  22. public GuestCodeAndCbData(byte[] code, byte[] cb1Data)
  23. {
  24. Code = code;
  25. Cb1Data = cb1Data;
  26. }
  27. }
  28. }