public SurfaceCapabilitiesKHR
 (
     uint minImageCount       = default,
     uint maxImageCount       = default,
     Extent2D currentExtent   = default,
     Extent2D minImageExtent  = default,
     Extent2D maxImageExtent  = default,
     uint maxImageArrayLayers = default,
     SurfaceTransformFlagsKHR supportedTransforms   = default,
     SurfaceTransformFlagsKHR currentTransform      = default,
     CompositeAlphaFlagsKHR supportedCompositeAlpha = default,
     ImageUsageFlags supportedUsageFlags            = default
 )
 {
     MinImageCount           = minImageCount;
     MaxImageCount           = maxImageCount;
     CurrentExtent           = currentExtent;
     MinImageExtent          = minImageExtent;
     MaxImageExtent          = maxImageExtent;
     MaxImageArrayLayers     = maxImageArrayLayers;
     SupportedTransforms     = supportedTransforms;
     CurrentTransform        = currentTransform;
     SupportedCompositeAlpha = supportedCompositeAlpha;
     SupportedUsageFlags     = supportedUsageFlags;
 }
 public SurfaceCapabilities2EXT
 (
     StructureType sType      = StructureType.SurfaceCapabilities2Ext,
     void *pNext              = default,
     uint minImageCount       = default,
     uint maxImageCount       = default,
     Extent2D currentExtent   = default,
     Extent2D minImageExtent  = default,
     Extent2D maxImageExtent  = default,
     uint maxImageArrayLayers = default,
     SurfaceTransformFlagsKHR supportedTransforms    = default,
     SurfaceTransformFlagsKHR currentTransform       = default,
     CompositeAlphaFlagsKHR supportedCompositeAlpha  = default,
     ImageUsageFlags supportedUsageFlags             = default,
     SurfaceCounterFlagsEXT supportedSurfaceCounters = default
 )
 {
     SType                    = sType;
     PNext                    = pNext;
     MinImageCount            = minImageCount;
     MaxImageCount            = maxImageCount;
     CurrentExtent            = currentExtent;
     MinImageExtent           = minImageExtent;
     MaxImageExtent           = maxImageExtent;
     MaxImageArrayLayers      = maxImageArrayLayers;
     SupportedTransforms      = supportedTransforms;
     CurrentTransform         = currentTransform;
     SupportedCompositeAlpha  = supportedCompositeAlpha;
     SupportedUsageFlags      = supportedUsageFlags;
     SupportedSurfaceCounters = supportedSurfaceCounters;
 }
 public DisplaySurfaceCreateInfoKHR
 (
     StructureType sType                 = StructureType.DisplaySurfaceCreateInfoKhr,
     void *pNext                         = default,
     uint flags                          = default,
     DisplayModeKHR displayMode          = default,
     uint planeIndex                     = default,
     uint planeStackIndex                = default,
     SurfaceTransformFlagsKHR transform  = default,
     float globalAlpha                   = default,
     DisplayPlaneAlphaFlagsKHR alphaMode = default,
     Extent2D imageExtent                = default
 )
 {
     SType           = sType;
     PNext           = pNext;
     Flags           = flags;
     DisplayMode     = displayMode;
     PlaneIndex      = planeIndex;
     PlaneStackIndex = planeStackIndex;
     Transform       = transform;
     GlobalAlpha     = globalAlpha;
     AlphaMode       = alphaMode;
     ImageExtent     = imageExtent;
 }
 public RenderPassTransformBeginInfoQCOM
 (
     StructureType sType = StructureType.RenderPassTransformBeginInfoQCom,
     void *pNext         = default,
     SurfaceTransformFlagsKHR transform = default
 )
 {
     SType     = sType;
     PNext     = pNext;
     Transform = transform;
 }
 public CommandBufferInheritanceRenderPassTransformInfoQCOM
 (
     StructureType sType = StructureType.CommandBufferInheritanceRenderPassTransformInfoQCom,
     void *pNext         = default,
     SurfaceTransformFlagsKHR transform = default,
     Rect2D renderArea = default
 )
 {
     SType      = sType;
     PNext      = pNext;
     Transform  = transform;
     RenderArea = renderArea;
 }
Example #6
0
 public DisplayPropertiesKHR
 (
     DisplayKHR display          = default,
     byte *displayName           = default,
     Extent2D physicalDimensions = default,
     Extent2D physicalResolution = default,
     SurfaceTransformFlagsKHR supportedTransforms = default,
     Bool32 planeReorderPossible = default,
     Bool32 persistentContent    = default
 )
 {
     Display              = display;
     DisplayName          = displayName;
     PhysicalDimensions   = physicalDimensions;
     PhysicalResolution   = physicalResolution;
     SupportedTransforms  = supportedTransforms;
     PlaneReorderPossible = planeReorderPossible;
     PersistentContent    = persistentContent;
 }
Example #7
0
 public SwapchainCreateInfoKHR
 (
     StructureType sType                   = StructureType.SwapchainCreateInfoKhr,
     void *pNext                           = default,
     SwapchainCreateFlagsKHR flags         = default,
     SurfaceKHR surface                    = default,
     uint minImageCount                    = default,
     Format imageFormat                    = default,
     ColorSpaceKHR imageColorSpace         = default,
     Extent2D imageExtent                  = default,
     uint imageArrayLayers                 = default,
     ImageUsageFlags imageUsage            = default,
     SharingMode imageSharingMode          = default,
     uint queueFamilyIndexCount            = default,
     uint *pQueueFamilyIndices             = default,
     SurfaceTransformFlagsKHR preTransform = default,
     CompositeAlphaFlagsKHR compositeAlpha = default,
     PresentModeKHR presentMode            = default,
     Bool32 clipped                        = default,
     SwapchainKHR oldSwapchain             = default
 )
 {
     SType                 = sType;
     PNext                 = pNext;
     Flags                 = flags;
     Surface               = surface;
     MinImageCount         = minImageCount;
     ImageFormat           = imageFormat;
     ImageColorSpace       = imageColorSpace;
     ImageExtent           = imageExtent;
     ImageArrayLayers      = imageArrayLayers;
     ImageUsage            = imageUsage;
     ImageSharingMode      = imageSharingMode;
     QueueFamilyIndexCount = queueFamilyIndexCount;
     PQueueFamilyIndices   = pQueueFamilyIndices;
     PreTransform          = preTransform;
     CompositeAlpha        = compositeAlpha;
     PresentMode           = presentMode;
     Clipped               = clipped;
     OldSwapchain          = oldSwapchain;
 }
Example #8
0
            public _SwapchainCreateInfoKHR(SwapchainCreateInfoKHR info)
            {
                SType                 = info.type;
                Next                  = info.next;
                Flags                 = info.flags;
                Surface               = info.surface;
                MinImageCount         = info.minImageCount;
                ImageFormat           = info.imageFormat;
                ImageColorSpace       = info.imageColorSpace;
                ImageExtent           = info.imageExtent;
                ImageArrayLayers      = info.imageArrayLayers;
                ImageUsage            = info.imageUsage;
                ImageSharingMode      = info.imageSharingMode;
                QueueFamilyIndexCount = (UInt32)(info.queueFamilyIndices?.Count ?? 0);
                QueueFamilyIndices    = info.queueFamilyIndices != null?Alloc.alloc(info.queueFamilyIndices) : IntPtr.Zero;

                PreTransform   = info.preTransform;
                CompositeAlpha = info.compositeAlpha;
                PresentMode    = info.presentMode;
                Clipped        = info.clipped;
                OldSwapchain   = info.oldSwapchain;
            }
Example #9
0
 /// <param name="Surface">The swapchain's target surface</param>
 /// <param name="MinImageCount">Minimum number of presentation images the application needs</param>
 /// <param name="ImageFormat">Format of the presentation images</param>
 /// <param name="ImageColorSpace">Colorspace of the presentation images</param>
 /// <param name="ImageExtent">Dimensions of the presentation images</param>
 /// <param name="ImageArrayLayers">Determines the number of views for multiview/stereo presentation</param>
 /// <param name="ImageUsage">Bits indicating how the presentation images will be used</param>
 /// <param name="ImageSharingMode">Sharing mode used for the presentation images</param>
 /// <param name="QueueFamilyIndices">Array of queue family indices having access to the images in case of concurrent sharing mode</param>
 /// <param name="PreTransform">The transform, relative to the device's natural orientation, applied to the image content prior to presentation</param>
 /// <param name="CompositeAlpha">The alpha blending mode used when compositing this surface with other surfaces in the window system</param>
 /// <param name="PresentMode">Which presentation mode to use for presents on this swap chain</param>
 /// <param name="Clipped">Specifies whether presentable images may be affected by window clip regions</param>
 public SwapchainCreateInfoKHR(SurfaceKHR Surface, UInt32 MinImageCount, Format ImageFormat, ColorSpaceKHR ImageColorSpace, Extent2D ImageExtent, UInt32 ImageArrayLayers, ImageUsageFlags ImageUsage, SharingMode ImageSharingMode, UInt32[] QueueFamilyIndices, SurfaceTransformFlagsKHR PreTransform, CompositeAlphaFlagsKHR CompositeAlpha, PresentModeKHR PresentMode, Bool32 Clipped) : this()
 {
     this.Surface            = Surface;
     this.MinImageCount      = MinImageCount;
     this.ImageFormat        = ImageFormat;
     this.ImageColorSpace    = ImageColorSpace;
     this.ImageExtent        = ImageExtent;
     this.ImageArrayLayers   = ImageArrayLayers;
     this.ImageUsage         = ImageUsage;
     this.ImageSharingMode   = ImageSharingMode;
     this.QueueFamilyIndices = QueueFamilyIndices;
     this.PreTransform       = PreTransform;
     this.CompositeAlpha     = CompositeAlpha;
     this.PresentMode        = PresentMode;
     this.Clipped            = Clipped;
 }
 /// <param name="DisplayMode">The mode to use when displaying this surface</param>
 /// <param name="PlaneIndex">The plane on which this surface appears. Must be between 0 and the value returned by vkGetPhysicalDeviceDisplayPlanePropertiesKHR() in pPropertyCount.</param>
 /// <param name="PlaneStackIndex">The z-order of the plane.</param>
 /// <param name="Transform">Transform to apply to the images as part of the scannout operation</param>
 /// <param name="GlobalAlpha">Global alpha value. Must be between 0 and 1, inclusive. Ignored if alphaMode is not VK_DISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHR</param>
 /// <param name="AlphaMode">What type of alpha blending to use. Must be a bit from vkGetDisplayPlanePropertiesKHR::supportedAlpha.</param>
 /// <param name="ImageExtent">Size of the images to use with this surface</param>
 public DisplaySurfaceCreateInfoKHR(DisplayModeKHR DisplayMode, UInt32 PlaneIndex, UInt32 PlaneStackIndex, SurfaceTransformFlagsKHR Transform, Single GlobalAlpha, DisplayPlaneAlphaFlagsKHR AlphaMode, Extent2D ImageExtent) : this()
 {
     this.DisplayMode     = DisplayMode;
     this.PlaneIndex      = PlaneIndex;
     this.PlaneStackIndex = PlaneStackIndex;
     this.Transform       = Transform;
     this.GlobalAlpha     = GlobalAlpha;
     this.AlphaMode       = AlphaMode;
     this.ImageExtent     = ImageExtent;
 }