CGSize.cs 412 B

12345678910111213141516171819
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. namespace Veldrid.MetalBindings
  4. {
  5. public struct CGSize
  6. {
  7. public double width;
  8. public double height;
  9. public CGSize(double width, double height)
  10. {
  11. this.width = width;
  12. this.height = height;
  13. }
  14. public override string ToString() => string.Format("{0} x {1}", width, height);
  15. }
  16. }