GuestCodeAndCbData.cs 904 B

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