示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ImageViewCreateInfo"/> structure.
 /// </summary>
 /// <param name="format">
 /// A <see cref="Format"/> describing the format and type used to interpret data elements in
 /// the image.
 /// </param>
 /// <param name="subresourceRange">
 /// A range selecting the set of mipmap levels and array layers to be accessible to the view.
 /// </param>
 /// <param name="viewType">The type of the image view.</param>
 /// <param name="components">Specifies a remapping of color components.</param>
 public ImageViewCreateInfo(
     Format format,
     ImageSubresourceRange subresourceRange,
     ImageViewType viewType      = ImageViewType.Image2D,
     ComponentMapping components = default(ComponentMapping))
 {
     Type             = StructureType.ImageViewCreateInfo;
     Next             = IntPtr.Zero;
     Flags            = 0;
     Image            = 0;
     Format           = format;
     SubresourceRange = subresourceRange;
     ViewType         = viewType;
     Components       = components;
 }
 public ImageViewCreateInfo
 (
     StructureType sType                    = StructureType.ImageViewCreateInfo,
     void *pNext                            = default,
     ImageViewCreateFlags flags             = default,
     Image image                            = default,
     ImageViewType viewType                 = default,
     Format format                          = default,
     ComponentMapping components            = default,
     ImageSubresourceRange subresourceRange = default
 )
 {
     SType            = sType;
     PNext            = pNext;
     Flags            = flags;
     Image            = image;
     ViewType         = viewType;
     Format           = format;
     Components       = components;
     SubresourceRange = subresourceRange;
 }