SDL  2.0
VULKAN_HPP_NAMESPACE::CommandBufferAllocateInfo Struct Reference

#include <vulkan.hpp>

+ Collaboration diagram for VULKAN_HPP_NAMESPACE::CommandBufferAllocateInfo:

Public Member Functions

 CommandBufferAllocateInfo (CommandPool commandPool_=CommandPool(), CommandBufferLevel level_=CommandBufferLevel::ePrimary, uint32_t commandBufferCount_=0)
 
 CommandBufferAllocateInfo (VkCommandBufferAllocateInfo const &rhs)
 
CommandBufferAllocateInfooperator= (VkCommandBufferAllocateInfo const &rhs)
 
CommandBufferAllocateInfosetPNext (const void *pNext_)
 
CommandBufferAllocateInfosetCommandPool (CommandPool commandPool_)
 
CommandBufferAllocateInfosetLevel (CommandBufferLevel level_)
 
CommandBufferAllocateInfosetCommandBufferCount (uint32_t commandBufferCount_)
 
 operator VkCommandBufferAllocateInfo const & () const
 
 operator VkCommandBufferAllocateInfo & ()
 
bool operator== (CommandBufferAllocateInfo const &rhs) const
 
bool operator!= (CommandBufferAllocateInfo const &rhs) const
 

Data Fields

const voidpNext = nullptr
 
CommandPool commandPool
 
CommandBufferLevel level
 
uint32_t commandBufferCount
 

Private Attributes

StructureType sType = StructureType::eCommandBufferAllocateInfo
 

Detailed Description

Definition at line 11320 of file vulkan.hpp.

Constructor & Destructor Documentation

◆ CommandBufferAllocateInfo() [1/2]

VULKAN_HPP_NAMESPACE::CommandBufferAllocateInfo::CommandBufferAllocateInfo ( CommandPool  commandPool_ = CommandPool(),
CommandBufferLevel  level_ = CommandBufferLevel::ePrimary,
uint32_t  commandBufferCount_ = 0 
)
inline

Definition at line 11322 of file vulkan.hpp.

11325  : commandPool( commandPool_ )
11326  , level( level_ )
11327  , commandBufferCount( commandBufferCount_ )
11328  {
11329  }

◆ CommandBufferAllocateInfo() [2/2]

VULKAN_HPP_NAMESPACE::CommandBufferAllocateInfo::CommandBufferAllocateInfo ( VkCommandBufferAllocateInfo const &  rhs)
inline

Definition at line 11331 of file vulkan.hpp.

References memcpy.

11332  {
11333  memcpy( this, &rhs, sizeof( CommandBufferAllocateInfo ) );
11334  }
#define memcpy
Definition: SDL_malloc.c:630
CommandBufferAllocateInfo(CommandPool commandPool_=CommandPool(), CommandBufferLevel level_=CommandBufferLevel::ePrimary, uint32_t commandBufferCount_=0)
Definition: vulkan.hpp:11322

Member Function Documentation

◆ operator VkCommandBufferAllocateInfo &()

VULKAN_HPP_NAMESPACE::CommandBufferAllocateInfo::operator VkCommandBufferAllocateInfo & ( )
inline

Definition at line 11370 of file vulkan.hpp.

11371  {
11372  return *reinterpret_cast<VkCommandBufferAllocateInfo*>(this);
11373  }

◆ operator VkCommandBufferAllocateInfo const &()

VULKAN_HPP_NAMESPACE::CommandBufferAllocateInfo::operator VkCommandBufferAllocateInfo const & ( ) const
inline

Definition at line 11365 of file vulkan.hpp.

11366  {
11367  return *reinterpret_cast<const VkCommandBufferAllocateInfo*>(this);
11368  }

◆ operator!=()

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

Definition at line 11384 of file vulkan.hpp.

11385  {
11386  return !operator==( rhs );
11387  }
bool operator==(CommandBufferAllocateInfo const &rhs) const
Definition: vulkan.hpp:11375

◆ operator=()

CommandBufferAllocateInfo& VULKAN_HPP_NAMESPACE::CommandBufferAllocateInfo::operator= ( VkCommandBufferAllocateInfo const &  rhs)
inline

Definition at line 11336 of file vulkan.hpp.

References memcpy.

11337  {
11338  memcpy( this, &rhs, sizeof( CommandBufferAllocateInfo ) );
11339  return *this;
11340  }
#define memcpy
Definition: SDL_malloc.c:630
CommandBufferAllocateInfo(CommandPool commandPool_=CommandPool(), CommandBufferLevel level_=CommandBufferLevel::ePrimary, uint32_t commandBufferCount_=0)
Definition: vulkan.hpp:11322

◆ operator==()

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

Definition at line 11375 of file vulkan.hpp.

References commandBufferCount, commandPool, level, pNext, and sType.

11376  {
11377  return ( sType == rhs.sType )
11378  && ( pNext == rhs.pNext )
11379  && ( commandPool == rhs.commandPool )
11380  && ( level == rhs.level )
11381  && ( commandBufferCount == rhs.commandBufferCount );
11382  }
GLint level
Definition: SDL_opengl.h:1572

◆ setCommandBufferCount()

CommandBufferAllocateInfo& VULKAN_HPP_NAMESPACE::CommandBufferAllocateInfo::setCommandBufferCount ( uint32_t  commandBufferCount_)
inline

Definition at line 11359 of file vulkan.hpp.

11360  {
11361  commandBufferCount = commandBufferCount_;
11362  return *this;
11363  }

◆ setCommandPool()

CommandBufferAllocateInfo& VULKAN_HPP_NAMESPACE::CommandBufferAllocateInfo::setCommandPool ( CommandPool  commandPool_)
inline

Definition at line 11347 of file vulkan.hpp.

11348  {
11349  commandPool = commandPool_;
11350  return *this;
11351  }

◆ setLevel()

CommandBufferAllocateInfo& VULKAN_HPP_NAMESPACE::CommandBufferAllocateInfo::setLevel ( CommandBufferLevel  level_)
inline

Definition at line 11353 of file vulkan.hpp.

11354  {
11355  level = level_;
11356  return *this;
11357  }
GLint level
Definition: SDL_opengl.h:1572

◆ setPNext()

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

Definition at line 11341 of file vulkan.hpp.

11342  {
11343  pNext = pNext_;
11344  return *this;
11345  }

Field Documentation

◆ commandBufferCount

uint32_t VULKAN_HPP_NAMESPACE::CommandBufferAllocateInfo::commandBufferCount

◆ commandPool

CommandPool VULKAN_HPP_NAMESPACE::CommandBufferAllocateInfo::commandPool

◆ level

CommandBufferLevel VULKAN_HPP_NAMESPACE::CommandBufferAllocateInfo::level

Definition at line 11395 of file vulkan.hpp.

Referenced by operator==().

◆ pNext

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

Definition at line 11393 of file vulkan.hpp.

Referenced by operator==().

◆ sType

StructureType VULKAN_HPP_NAMESPACE::CommandBufferAllocateInfo::sType = StructureType::eCommandBufferAllocateInfo
private

Definition at line 11390 of file vulkan.hpp.

Referenced by operator==().


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