Beispiel #1
0
 /// <summary>
 /// VkRect2D - Structure specifying a two-dimensional subregion
 /// </summary>
 /// <param name="extent">specifying the rectangle extent</param>
 public VkRect2D(VkExtent2D extent)
 {
     this.offset = new VkOffset2D(); this.extent = extent;
 }
Beispiel #2
0
 /// <summary>
 /// VkRect2D - Structure specifying a two-dimensional subregion
 /// </summary>
 /// <param name="offset">specifying the rectangle offset</param>
 /// <param name="extent">specifying the rectangle extent</param>
 public VkRect2D(VkOffset2D offset, VkExtent2D extent)
 {
     this.offset = offset; this.extent = extent;
 }
Beispiel #3
0
 /// <summary>
 /// VkViewport - Structure specifying a viewport
 /// </summary>
 /// <param name="extent">the viewport’s width and height</param>
 /// <param name="minDepth">minDepth and maxDepth are the depth range for the viewport.
 /// It is valid for minDepth to be greater than or equal to
 /// maxDepth.</param>
 /// <param name="maxDepth">minDepth and maxDepth are the depth range for the viewport.
 /// It is valid for minDepth to be greater than or equal to
 /// maxDepth.</param>
 public VkViewport(VkExtent2D extent, float minDepth, float maxDepth)
 {
     this.x        = 0; this.y = 0; this.width = extent.width; this.height = extent.height;
     this.minDepth = minDepth; this.maxDepth = maxDepth;
 }
Beispiel #4
0
 /// <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)
 {
     this.offset = default(VkOffset2D);
     this.extent = extent;
 }
Beispiel #5
0
 /// <summary>
 /// VkViewport - Structure specifying a viewport
 /// </summary>
 /// <param name="offset">the viewport’s upper left corner (x,y).</param>
 /// <param name="extent">the viewport’s width and height</param>
 /// <param name="minDepth">minDepth and maxDepth are the depth range for the viewport.
 /// It is valid for minDepth to be greater than or equal to
 /// maxDepth.</param>
 /// <param name="maxDepth">minDepth and maxDepth are the depth range for the viewport.
 /// It is valid for minDepth to be greater than or equal to
 /// maxDepth.</param>
 public VkViewport(VkOffset2D offset, VkExtent2D extent, float minDepth, float maxDepth)
 {
     this.x        = offset.x; this.y = offset.y; this.width = extent.width; this.height = extent.height;
     this.minDepth = minDepth; this.maxDepth = maxDepth;
 }