MTLClearColor.cs 452 B

123456789101112131415161718192021
  1. using System.Runtime.InteropServices;
  2. namespace Veldrid.MetalBindings
  3. {
  4. [StructLayout(LayoutKind.Sequential)]
  5. public struct MTLClearColor
  6. {
  7. public double red;
  8. public double green;
  9. public double blue;
  10. public double alpha;
  11. public MTLClearColor(double r, double g, double b, double a)
  12. {
  13. red = r;
  14. green = g;
  15. blue = b;
  16. alpha = a;
  17. }
  18. }
  19. }