/// <summary>
 /// Initializes a new instance of the <see cref="VkRect2D"/> structure.
 /// </summary>
 /// <param name="width">The width component of the extent.</param>
 /// <param name="height">The height component of the extent.</param>
 public VkRect2D(int width, int height)
 {
     offset = default;
     extent = new VkExtent2D(width, height);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="VkRect2D"/> structure.
 /// </summary>
 /// <param name="x">The X component of the offset.</param>
 /// <param name="y">The Y component of the offset.</param>
 /// <param name="width">The width component of the extent.</param>
 /// <param name="height">The height component of the extent.</param>
 public VkRect2D(int x, int y, int width, int height)
 {
     offset = new VkOffset2D(x, y);
     extent = new VkExtent2D(width, height);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="VkRect2D"/> structure.
 /// </summary>
 /// <param name="offset">The offset component of the rectangle.</param>
 /// <param name="extent">The extent component of the rectangle.</param>
 public VkRect2D(VkOffset2D offset, VkExtent2D extent)
 {
     this.offset = offset;
     this.extent = extent;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="VkRect2D"/> structure.
 /// </summary>
 /// <param name="extent">The extent component of the rectangle.</param>
 public VkRect2D(VkExtent2D extent)
 {
     offset      = default;
     this.extent = extent;
 }
Beispiel #5
0
 /// <summary>
 /// Initializes a new instance of <see cref="VkExtent3D"/> structure.
 /// </summary>
 /// <param name="extent2D">The <see cref="VkExtent2D"/> containing width and height.</param>
 /// <param name="depth">The depth component of the extent.</param>
 public VkExtent3D(VkExtent2D extent2D, uint depth)
 {
     width = extent2D.width;
     height = extent2D.height;
     this.depth = depth;
 }