SDL 2.0
VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR Struct Reference

#include <vulkan.hpp>

+ Collaboration diagram for VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR:

Public Member Functions

 SwapchainCreateInfoKHR (SwapchainCreateFlagsKHR flags_=SwapchainCreateFlagsKHR(), SurfaceKHR surface_=SurfaceKHR(), uint32_t minImageCount_=0, Format imageFormat_=Format::eUndefined, ColorSpaceKHR imageColorSpace_=ColorSpaceKHR::eSrgbNonlinear, Extent2D imageExtent_=Extent2D(), uint32_t imageArrayLayers_=0, ImageUsageFlags imageUsage_=ImageUsageFlags(), SharingMode imageSharingMode_=SharingMode::eExclusive, uint32_t queueFamilyIndexCount_=0, const uint32_t *pQueueFamilyIndices_=nullptr, SurfaceTransformFlagBitsKHR preTransform_=SurfaceTransformFlagBitsKHR::eIdentity, CompositeAlphaFlagBitsKHR compositeAlpha_=CompositeAlphaFlagBitsKHR::eOpaque, PresentModeKHR presentMode_=PresentModeKHR::eImmediate, Bool32 clipped_=0, SwapchainKHR oldSwapchain_=SwapchainKHR())
 
 SwapchainCreateInfoKHR (VkSwapchainCreateInfoKHR const &rhs)
 
SwapchainCreateInfoKHRoperator= (VkSwapchainCreateInfoKHR const &rhs)
 
SwapchainCreateInfoKHRsetPNext (const void *pNext_)
 
SwapchainCreateInfoKHRsetFlags (SwapchainCreateFlagsKHR flags_)
 
SwapchainCreateInfoKHRsetSurface (SurfaceKHR surface_)
 
SwapchainCreateInfoKHRsetMinImageCount (uint32_t minImageCount_)
 
SwapchainCreateInfoKHRsetImageFormat (Format imageFormat_)
 
SwapchainCreateInfoKHRsetImageColorSpace (ColorSpaceKHR imageColorSpace_)
 
SwapchainCreateInfoKHRsetImageExtent (Extent2D imageExtent_)
 
SwapchainCreateInfoKHRsetImageArrayLayers (uint32_t imageArrayLayers_)
 
SwapchainCreateInfoKHRsetImageUsage (ImageUsageFlags imageUsage_)
 
SwapchainCreateInfoKHRsetImageSharingMode (SharingMode imageSharingMode_)
 
SwapchainCreateInfoKHRsetQueueFamilyIndexCount (uint32_t queueFamilyIndexCount_)
 
SwapchainCreateInfoKHRsetPQueueFamilyIndices (const uint32_t *pQueueFamilyIndices_)
 
SwapchainCreateInfoKHRsetPreTransform (SurfaceTransformFlagBitsKHR preTransform_)
 
SwapchainCreateInfoKHRsetCompositeAlpha (CompositeAlphaFlagBitsKHR compositeAlpha_)
 
SwapchainCreateInfoKHRsetPresentMode (PresentModeKHR presentMode_)
 
SwapchainCreateInfoKHRsetClipped (Bool32 clipped_)
 
SwapchainCreateInfoKHRsetOldSwapchain (SwapchainKHR oldSwapchain_)
 
 operator VkSwapchainCreateInfoKHR const & () const
 
 operator VkSwapchainCreateInfoKHR & ()
 
bool operator== (SwapchainCreateInfoKHR const &rhs) const
 
bool operator!= (SwapchainCreateInfoKHR const &rhs) const
 

Data Fields

const voidpNext = nullptr
 
SwapchainCreateFlagsKHR flags
 
SurfaceKHR surface
 
uint32_t minImageCount
 
Format imageFormat
 
ColorSpaceKHR imageColorSpace
 
Extent2D imageExtent
 
uint32_t imageArrayLayers
 
ImageUsageFlags imageUsage
 
SharingMode imageSharingMode
 
uint32_t queueFamilyIndexCount
 
const uint32_tpQueueFamilyIndices
 
SurfaceTransformFlagBitsKHR preTransform
 
CompositeAlphaFlagBitsKHR compositeAlpha
 
PresentModeKHR presentMode
 
Bool32 clipped
 
SwapchainKHR oldSwapchain
 

Private Attributes

StructureType sType = StructureType::eSwapchainCreateInfoKHR
 

Detailed Description

Definition at line 34285 of file vulkan.hpp.

Constructor & Destructor Documentation

◆ SwapchainCreateInfoKHR() [1/2]

VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR::SwapchainCreateInfoKHR ( SwapchainCreateFlagsKHR  flags_ = SwapchainCreateFlagsKHR(),
SurfaceKHR  surface_ = SurfaceKHR(),
uint32_t  minImageCount_ = 0,
Format  imageFormat_ = Format::eUndefined,
ColorSpaceKHR  imageColorSpace_ = ColorSpaceKHR::eSrgbNonlinear,
Extent2D  imageExtent_ = Extent2D(),
uint32_t  imageArrayLayers_ = 0,
ImageUsageFlags  imageUsage_ = ImageUsageFlags(),
SharingMode  imageSharingMode_ = SharingMode::eExclusive,
uint32_t  queueFamilyIndexCount_ = 0,
const uint32_t pQueueFamilyIndices_ = nullptr,
SurfaceTransformFlagBitsKHR  preTransform_ = SurfaceTransformFlagBitsKHR::eIdentity,
CompositeAlphaFlagBitsKHR  compositeAlpha_ = CompositeAlphaFlagBitsKHR::eOpaque,
PresentModeKHR  presentMode_ = PresentModeKHR::eImmediate,
Bool32  clipped_ = 0,
SwapchainKHR  oldSwapchain_ = SwapchainKHR() 
)
inline

Definition at line 34287 of file vulkan.hpp.

34303 : flags( flags_ )
34304 , surface( surface_ )
34305 , minImageCount( minImageCount_ )
34306 , imageFormat( imageFormat_ )
34307 , imageColorSpace( imageColorSpace_ )
34308 , imageExtent( imageExtent_ )
34309 , imageArrayLayers( imageArrayLayers_ )
34310 , imageUsage( imageUsage_ )
34311 , imageSharingMode( imageSharingMode_ )
34312 , queueFamilyIndexCount( queueFamilyIndexCount_ )
34313 , pQueueFamilyIndices( pQueueFamilyIndices_ )
34314 , preTransform( preTransform_ )
34315 , compositeAlpha( compositeAlpha_ )
34316 , presentMode( presentMode_ )
34317 , clipped( clipped_ )
34318 , oldSwapchain( oldSwapchain_ )
34319 {
34320 }
CompositeAlphaFlagBitsKHR compositeAlpha
Definition: vulkan.hpp:34488
SurfaceTransformFlagBitsKHR preTransform
Definition: vulkan.hpp:34487

◆ SwapchainCreateInfoKHR() [2/2]

VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR::SwapchainCreateInfoKHR ( VkSwapchainCreateInfoKHR const &  rhs)
inline

Definition at line 34322 of file vulkan.hpp.

34323 {
34324 memcpy( this, &rhs, sizeof( SwapchainCreateInfoKHR ) );
34325 }
#define memcpy
Definition: SDL_malloc.c:630
SwapchainCreateInfoKHR(SwapchainCreateFlagsKHR flags_=SwapchainCreateFlagsKHR(), SurfaceKHR surface_=SurfaceKHR(), uint32_t minImageCount_=0, Format imageFormat_=Format::eUndefined, ColorSpaceKHR imageColorSpace_=ColorSpaceKHR::eSrgbNonlinear, Extent2D imageExtent_=Extent2D(), uint32_t imageArrayLayers_=0, ImageUsageFlags imageUsage_=ImageUsageFlags(), SharingMode imageSharingMode_=SharingMode::eExclusive, uint32_t queueFamilyIndexCount_=0, const uint32_t *pQueueFamilyIndices_=nullptr, SurfaceTransformFlagBitsKHR preTransform_=SurfaceTransformFlagBitsKHR::eIdentity, CompositeAlphaFlagBitsKHR compositeAlpha_=CompositeAlphaFlagBitsKHR::eOpaque, PresentModeKHR presentMode_=PresentModeKHR::eImmediate, Bool32 clipped_=0, SwapchainKHR oldSwapchain_=SwapchainKHR())
Definition: vulkan.hpp:34287

References memcpy.

Member Function Documentation

◆ operator VkSwapchainCreateInfoKHR &()

VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR::operator VkSwapchainCreateInfoKHR & ( )
inline

Definition at line 34439 of file vulkan.hpp.

34440 {
34441 return *reinterpret_cast<VkSwapchainCreateInfoKHR*>(this);
34442 }

◆ operator VkSwapchainCreateInfoKHR const &()

VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR::operator VkSwapchainCreateInfoKHR const & ( ) const
inline

Definition at line 34434 of file vulkan.hpp.

34435 {
34436 return *reinterpret_cast<const VkSwapchainCreateInfoKHR*>(this);
34437 }

◆ operator!=()

bool VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR::operator!= ( SwapchainCreateInfoKHR const &  rhs) const
inline

Definition at line 34466 of file vulkan.hpp.

34467 {
34468 return !operator==( rhs );
34469 }
bool operator==(SwapchainCreateInfoKHR const &rhs) const
Definition: vulkan.hpp:34444

References operator==().

◆ operator=()

SwapchainCreateInfoKHR & VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR::operator= ( VkSwapchainCreateInfoKHR const &  rhs)
inline

Definition at line 34327 of file vulkan.hpp.

34328 {
34329 memcpy( this, &rhs, sizeof( SwapchainCreateInfoKHR ) );
34330 return *this;
34331 }

References memcpy.

◆ operator==()

bool VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR::operator== ( SwapchainCreateInfoKHR const &  rhs) const
inline

Definition at line 34444 of file vulkan.hpp.

34445 {
34446 return ( sType == rhs.sType )
34447 && ( pNext == rhs.pNext )
34448 && ( flags == rhs.flags )
34449 && ( surface == rhs.surface )
34450 && ( minImageCount == rhs.minImageCount )
34451 && ( imageFormat == rhs.imageFormat )
34452 && ( imageColorSpace == rhs.imageColorSpace )
34453 && ( imageExtent == rhs.imageExtent )
34454 && ( imageArrayLayers == rhs.imageArrayLayers )
34455 && ( imageUsage == rhs.imageUsage )
34456 && ( imageSharingMode == rhs.imageSharingMode )
34457 && ( queueFamilyIndexCount == rhs.queueFamilyIndexCount )
34458 && ( pQueueFamilyIndices == rhs.pQueueFamilyIndices )
34459 && ( preTransform == rhs.preTransform )
34460 && ( compositeAlpha == rhs.compositeAlpha )
34461 && ( presentMode == rhs.presentMode )
34462 && ( clipped == rhs.clipped )
34463 && ( oldSwapchain == rhs.oldSwapchain );
34464 }
GLbitfield flags
EGLSurface surface
Definition: eglext.h:248

References clipped, compositeAlpha, flags, imageArrayLayers, imageColorSpace, imageExtent, imageFormat, imageSharingMode, imageUsage, minImageCount, oldSwapchain, pNext, pQueueFamilyIndices, presentMode, preTransform, queueFamilyIndexCount, sType, and surface.

Referenced by operator!=().

◆ setClipped()

SwapchainCreateInfoKHR & VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR::setClipped ( Bool32  clipped_)
inline

Definition at line 34422 of file vulkan.hpp.

34423 {
34424 clipped = clipped_;
34425 return *this;
34426 }

References clipped.

◆ setCompositeAlpha()

SwapchainCreateInfoKHR & VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR::setCompositeAlpha ( CompositeAlphaFlagBitsKHR  compositeAlpha_)
inline

Definition at line 34410 of file vulkan.hpp.

34411 {
34412 compositeAlpha = compositeAlpha_;
34413 return *this;
34414 }

References compositeAlpha.

◆ setFlags()

SwapchainCreateInfoKHR & VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR::setFlags ( SwapchainCreateFlagsKHR  flags_)
inline

Definition at line 34338 of file vulkan.hpp.

34339 {
34340 flags = flags_;
34341 return *this;
34342 }

◆ setImageArrayLayers()

SwapchainCreateInfoKHR & VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR::setImageArrayLayers ( uint32_t  imageArrayLayers_)
inline

Definition at line 34374 of file vulkan.hpp.

34375 {
34376 imageArrayLayers = imageArrayLayers_;
34377 return *this;
34378 }

References imageArrayLayers.

◆ setImageColorSpace()

SwapchainCreateInfoKHR & VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR::setImageColorSpace ( ColorSpaceKHR  imageColorSpace_)
inline

Definition at line 34362 of file vulkan.hpp.

34363 {
34364 imageColorSpace = imageColorSpace_;
34365 return *this;
34366 }

References imageColorSpace.

◆ setImageExtent()

SwapchainCreateInfoKHR & VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR::setImageExtent ( Extent2D  imageExtent_)
inline

Definition at line 34368 of file vulkan.hpp.

34369 {
34370 imageExtent = imageExtent_;
34371 return *this;
34372 }

References imageExtent.

◆ setImageFormat()

SwapchainCreateInfoKHR & VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR::setImageFormat ( Format  imageFormat_)
inline

Definition at line 34356 of file vulkan.hpp.

34357 {
34358 imageFormat = imageFormat_;
34359 return *this;
34360 }

References imageFormat.

◆ setImageSharingMode()

SwapchainCreateInfoKHR & VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR::setImageSharingMode ( SharingMode  imageSharingMode_)
inline

Definition at line 34386 of file vulkan.hpp.

34387 {
34388 imageSharingMode = imageSharingMode_;
34389 return *this;
34390 }

References imageSharingMode.

◆ setImageUsage()

SwapchainCreateInfoKHR & VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR::setImageUsage ( ImageUsageFlags  imageUsage_)
inline

Definition at line 34380 of file vulkan.hpp.

34381 {
34382 imageUsage = imageUsage_;
34383 return *this;
34384 }

References imageUsage.

◆ setMinImageCount()

SwapchainCreateInfoKHR & VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR::setMinImageCount ( uint32_t  minImageCount_)
inline

Definition at line 34350 of file vulkan.hpp.

34351 {
34352 minImageCount = minImageCount_;
34353 return *this;
34354 }

References minImageCount.

◆ setOldSwapchain()

SwapchainCreateInfoKHR & VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR::setOldSwapchain ( SwapchainKHR  oldSwapchain_)
inline

Definition at line 34428 of file vulkan.hpp.

34429 {
34430 oldSwapchain = oldSwapchain_;
34431 return *this;
34432 }

References oldSwapchain.

◆ setPNext()

SwapchainCreateInfoKHR & VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR::setPNext ( const void pNext_)
inline

Definition at line 34332 of file vulkan.hpp.

34333 {
34334 pNext = pNext_;
34335 return *this;
34336 }

References pNext.

◆ setPQueueFamilyIndices()

SwapchainCreateInfoKHR & VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR::setPQueueFamilyIndices ( const uint32_t pQueueFamilyIndices_)
inline

Definition at line 34398 of file vulkan.hpp.

34399 {
34400 pQueueFamilyIndices = pQueueFamilyIndices_;
34401 return *this;
34402 }

References pQueueFamilyIndices.

◆ setPresentMode()

SwapchainCreateInfoKHR & VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR::setPresentMode ( PresentModeKHR  presentMode_)
inline

Definition at line 34416 of file vulkan.hpp.

34417 {
34418 presentMode = presentMode_;
34419 return *this;
34420 }

References presentMode.

◆ setPreTransform()

SwapchainCreateInfoKHR & VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR::setPreTransform ( SurfaceTransformFlagBitsKHR  preTransform_)
inline

Definition at line 34404 of file vulkan.hpp.

34405 {
34406 preTransform = preTransform_;
34407 return *this;
34408 }

References preTransform.

◆ setQueueFamilyIndexCount()

SwapchainCreateInfoKHR & VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR::setQueueFamilyIndexCount ( uint32_t  queueFamilyIndexCount_)
inline

Definition at line 34392 of file vulkan.hpp.

34393 {
34394 queueFamilyIndexCount = queueFamilyIndexCount_;
34395 return *this;
34396 }

References queueFamilyIndexCount.

◆ setSurface()

SwapchainCreateInfoKHR & VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR::setSurface ( SurfaceKHR  surface_)
inline

Definition at line 34344 of file vulkan.hpp.

34345 {
34346 surface = surface_;
34347 return *this;
34348 }

Field Documentation

◆ clipped

Bool32 VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR::clipped

Definition at line 34490 of file vulkan.hpp.

Referenced by operator==(), and setClipped().

◆ compositeAlpha

CompositeAlphaFlagBitsKHR VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR::compositeAlpha

Definition at line 34488 of file vulkan.hpp.

Referenced by operator==(), and setCompositeAlpha().

◆ flags

SwapchainCreateFlagsKHR VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR::flags

Definition at line 34476 of file vulkan.hpp.

Referenced by operator==().

◆ imageArrayLayers

uint32_t VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR::imageArrayLayers

Definition at line 34482 of file vulkan.hpp.

Referenced by operator==(), and setImageArrayLayers().

◆ imageColorSpace

ColorSpaceKHR VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR::imageColorSpace

Definition at line 34480 of file vulkan.hpp.

Referenced by operator==(), and setImageColorSpace().

◆ imageExtent

Extent2D VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR::imageExtent

Definition at line 34481 of file vulkan.hpp.

Referenced by operator==(), and setImageExtent().

◆ imageFormat

Format VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR::imageFormat

Definition at line 34479 of file vulkan.hpp.

Referenced by operator==(), and setImageFormat().

◆ imageSharingMode

SharingMode VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR::imageSharingMode

Definition at line 34484 of file vulkan.hpp.

Referenced by operator==(), and setImageSharingMode().

◆ imageUsage

ImageUsageFlags VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR::imageUsage

Definition at line 34483 of file vulkan.hpp.

Referenced by operator==(), and setImageUsage().

◆ minImageCount

uint32_t VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR::minImageCount

Definition at line 34478 of file vulkan.hpp.

Referenced by operator==(), and setMinImageCount().

◆ oldSwapchain

SwapchainKHR VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR::oldSwapchain

Definition at line 34491 of file vulkan.hpp.

Referenced by operator==(), and setOldSwapchain().

◆ pNext

const void* VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR::pNext = nullptr

Definition at line 34475 of file vulkan.hpp.

Referenced by operator==(), and setPNext().

◆ pQueueFamilyIndices

const uint32_t* VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR::pQueueFamilyIndices

Definition at line 34486 of file vulkan.hpp.

Referenced by operator==(), and setPQueueFamilyIndices().

◆ presentMode

PresentModeKHR VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR::presentMode

Definition at line 34489 of file vulkan.hpp.

Referenced by operator==(), and setPresentMode().

◆ preTransform

SurfaceTransformFlagBitsKHR VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR::preTransform

Definition at line 34487 of file vulkan.hpp.

Referenced by operator==(), and setPreTransform().

◆ queueFamilyIndexCount

uint32_t VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR::queueFamilyIndexCount

Definition at line 34485 of file vulkan.hpp.

Referenced by operator==(), and setQueueFamilyIndexCount().

◆ sType

StructureType VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR::sType = StructureType::eSwapchainCreateInfoKHR
private

Definition at line 34472 of file vulkan.hpp.

Referenced by operator==().

◆ surface

SurfaceKHR VULKAN_HPP_NAMESPACE::SwapchainCreateInfoKHR::surface

Definition at line 34477 of file vulkan.hpp.

Referenced by operator==().


The documentation for this struct was generated from the following file: