MTLSize.cs 450 B

1234567891011121314151617181920
  1. using System;
  2. using System.Runtime.InteropServices;
  3. namespace Veldrid.MetalBindings
  4. {
  5. [StructLayout(LayoutKind.Sequential)]
  6. public struct MTLSize
  7. {
  8. public UIntPtr Width;
  9. public UIntPtr Height;
  10. public UIntPtr Depth;
  11. public MTLSize(uint width, uint height, uint depth)
  12. {
  13. Width = (UIntPtr)width;
  14. Height = (UIntPtr)height;
  15. Depth = (UIntPtr)depth;
  16. }
  17. }
  18. }