SDL 2.0
VULKAN_HPP_NAMESPACE::CommandPoolCreateInfo Struct Reference

#include <vulkan.hpp>

+ Collaboration diagram for VULKAN_HPP_NAMESPACE::CommandPoolCreateInfo:

Public Member Functions

 CommandPoolCreateInfo (CommandPoolCreateFlags flags_=CommandPoolCreateFlags(), uint32_t queueFamilyIndex_=0)
 
 CommandPoolCreateInfo (VkCommandPoolCreateInfo const &rhs)
 
CommandPoolCreateInfooperator= (VkCommandPoolCreateInfo const &rhs)
 
CommandPoolCreateInfosetPNext (const void *pNext_)
 
CommandPoolCreateInfosetFlags (CommandPoolCreateFlags flags_)
 
CommandPoolCreateInfosetQueueFamilyIndex (uint32_t queueFamilyIndex_)
 
 operator VkCommandPoolCreateInfo const & () const
 
 operator VkCommandPoolCreateInfo & ()
 
bool operator== (CommandPoolCreateInfo const &rhs) const
 
bool operator!= (CommandPoolCreateInfo const &rhs) const
 

Data Fields

const voidpNext = nullptr
 
CommandPoolCreateFlags flags
 
uint32_t queueFamilyIndex
 

Private Attributes

StructureType sType = StructureType::eCommandPoolCreateInfo
 

Detailed Description

Definition at line 26828 of file vulkan.hpp.

Constructor & Destructor Documentation

◆ CommandPoolCreateInfo() [1/2]

VULKAN_HPP_NAMESPACE::CommandPoolCreateInfo::CommandPoolCreateInfo ( CommandPoolCreateFlags  flags_ = CommandPoolCreateFlags(),
uint32_t  queueFamilyIndex_ = 0 
)
inline

Definition at line 26830 of file vulkan.hpp.

26832 : flags( flags_ )
26833 , queueFamilyIndex( queueFamilyIndex_ )
26834 {
26835 }

◆ CommandPoolCreateInfo() [2/2]

VULKAN_HPP_NAMESPACE::CommandPoolCreateInfo::CommandPoolCreateInfo ( VkCommandPoolCreateInfo const &  rhs)
inline

Definition at line 26837 of file vulkan.hpp.

26838 {
26839 memcpy( this, &rhs, sizeof( CommandPoolCreateInfo ) );
26840 }
#define memcpy
Definition: SDL_malloc.c:630
CommandPoolCreateInfo(CommandPoolCreateFlags flags_=CommandPoolCreateFlags(), uint32_t queueFamilyIndex_=0)
Definition: vulkan.hpp:26830

References memcpy.

Member Function Documentation

◆ operator VkCommandPoolCreateInfo &()

VULKAN_HPP_NAMESPACE::CommandPoolCreateInfo::operator VkCommandPoolCreateInfo & ( )
inline

Definition at line 26870 of file vulkan.hpp.

26871 {
26872 return *reinterpret_cast<VkCommandPoolCreateInfo*>(this);
26873 }

◆ operator VkCommandPoolCreateInfo const &()

VULKAN_HPP_NAMESPACE::CommandPoolCreateInfo::operator VkCommandPoolCreateInfo const & ( ) const
inline

Definition at line 26865 of file vulkan.hpp.

26866 {
26867 return *reinterpret_cast<const VkCommandPoolCreateInfo*>(this);
26868 }

◆ operator!=()

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

Definition at line 26883 of file vulkan.hpp.

26884 {
26885 return !operator==( rhs );
26886 }
bool operator==(CommandPoolCreateInfo const &rhs) const
Definition: vulkan.hpp:26875

References operator==().

◆ operator=()

CommandPoolCreateInfo & VULKAN_HPP_NAMESPACE::CommandPoolCreateInfo::operator= ( VkCommandPoolCreateInfo const &  rhs)
inline

Definition at line 26842 of file vulkan.hpp.

26843 {
26844 memcpy( this, &rhs, sizeof( CommandPoolCreateInfo ) );
26845 return *this;
26846 }

References memcpy.

◆ operator==()

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

Definition at line 26875 of file vulkan.hpp.

26876 {
26877 return ( sType == rhs.sType )
26878 && ( pNext == rhs.pNext )
26879 && ( flags == rhs.flags )
26880 && ( queueFamilyIndex == rhs.queueFamilyIndex );
26881 }
GLbitfield flags

References flags, pNext, queueFamilyIndex, and sType.

Referenced by operator!=().

◆ setFlags()

CommandPoolCreateInfo & VULKAN_HPP_NAMESPACE::CommandPoolCreateInfo::setFlags ( CommandPoolCreateFlags  flags_)
inline

Definition at line 26853 of file vulkan.hpp.

26854 {
26855 flags = flags_;
26856 return *this;
26857 }

◆ setPNext()

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

Definition at line 26847 of file vulkan.hpp.

26848 {
26849 pNext = pNext_;
26850 return *this;
26851 }

References pNext.

◆ setQueueFamilyIndex()

CommandPoolCreateInfo & VULKAN_HPP_NAMESPACE::CommandPoolCreateInfo::setQueueFamilyIndex ( uint32_t  queueFamilyIndex_)
inline

Definition at line 26859 of file vulkan.hpp.

26860 {
26861 queueFamilyIndex = queueFamilyIndex_;
26862 return *this;
26863 }

References queueFamilyIndex.

Field Documentation

◆ flags

CommandPoolCreateFlags VULKAN_HPP_NAMESPACE::CommandPoolCreateInfo::flags

Definition at line 26893 of file vulkan.hpp.

Referenced by operator==().

◆ pNext

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

Definition at line 26892 of file vulkan.hpp.

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

◆ queueFamilyIndex

uint32_t VULKAN_HPP_NAMESPACE::CommandPoolCreateInfo::queueFamilyIndex

Definition at line 26894 of file vulkan.hpp.

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

◆ sType

StructureType VULKAN_HPP_NAMESPACE::CommandPoolCreateInfo::sType = StructureType::eCommandPoolCreateInfo
private

Definition at line 26889 of file vulkan.hpp.

Referenced by operator==().


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