SDL  2.0
VULKAN_HPP_NAMESPACE::AttachmentReference2 Struct Reference

#include <vulkan.hpp>

+ Collaboration diagram for VULKAN_HPP_NAMESPACE::AttachmentReference2:

Public Member Functions

VULKAN_HPP_CONSTEXPR AttachmentReference2 (uint32_t attachment_={}, VULKAN_HPP_NAMESPACE::ImageLayout layout_=VULKAN_HPP_NAMESPACE::ImageLayout::eUndefined, VULKAN_HPP_NAMESPACE::ImageAspectFlags aspectMask_={}) VULKAN_HPP_NOEXCEPT
 
VULKAN_HPP_CONSTEXPR AttachmentReference2 (AttachmentReference2 const &rhs) VULKAN_HPP_NOEXCEPT=default
 
 AttachmentReference2 (VkAttachmentReference2 const &rhs) VULKAN_HPP_NOEXCEPT
 
AttachmentReference2operator= (VkAttachmentReference2 const &rhs) VULKAN_HPP_NOEXCEPT
 
AttachmentReference2operator= (AttachmentReference2 const &rhs) VULKAN_HPP_NOEXCEPT
 
AttachmentReference2setPNext (const void *pNext_) VULKAN_HPP_NOEXCEPT
 
AttachmentReference2setAttachment (uint32_t attachment_) VULKAN_HPP_NOEXCEPT
 
AttachmentReference2setLayout (VULKAN_HPP_NAMESPACE::ImageLayout layout_) VULKAN_HPP_NOEXCEPT
 
AttachmentReference2setAspectMask (VULKAN_HPP_NAMESPACE::ImageAspectFlags aspectMask_) VULKAN_HPP_NOEXCEPT
 
 operator VkAttachmentReference2 const & () const VULKAN_HPP_NOEXCEPT
 
 operator VkAttachmentReference2 & () VULKAN_HPP_NOEXCEPT
 
bool operator== (AttachmentReference2 const &rhs) const VULKAN_HPP_NOEXCEPT
 
bool operator!= (AttachmentReference2 const &rhs) const VULKAN_HPP_NOEXCEPT
 

Data Fields

const VULKAN_HPP_NAMESPACE::StructureType sType = StructureType::eAttachmentReference2
 
const voidpNext = {}
 
uint32_t attachment = {}
 
VULKAN_HPP_NAMESPACE::ImageLayout layout = VULKAN_HPP_NAMESPACE::ImageLayout::eUndefined
 
VULKAN_HPP_NAMESPACE::ImageAspectFlags aspectMask = {}
 

Static Public Attributes

static const bool allowDuplicate = false
 
static VULKAN_HPP_CONST_OR_CONSTEXPR StructureType structureType = StructureType::eAttachmentReference2
 

Detailed Description

Definition at line 18554 of file vulkan.hpp.

Constructor & Destructor Documentation

◆ AttachmentReference2() [1/3]

VULKAN_HPP_CONSTEXPR VULKAN_HPP_NAMESPACE::AttachmentReference2::AttachmentReference2 ( uint32_t  attachment_ = {},
VULKAN_HPP_NAMESPACE::ImageLayout  layout_ = VULKAN_HPP_NAMESPACE::ImageLayout::eUndefined,
VULKAN_HPP_NAMESPACE::ImageAspectFlags  aspectMask_ = {} 
)
inline

◆ AttachmentReference2() [2/3]

VULKAN_HPP_CONSTEXPR VULKAN_HPP_NAMESPACE::AttachmentReference2::AttachmentReference2 ( AttachmentReference2 const &  rhs)
default

◆ AttachmentReference2() [3/3]

VULKAN_HPP_NAMESPACE::AttachmentReference2::AttachmentReference2 ( VkAttachmentReference2 const &  rhs)
inline

Definition at line 18566 of file vulkan.hpp.

18567  {
18568  *this = rhs;
18569  }

Member Function Documentation

◆ operator VkAttachmentReference2 &()

VULKAN_HPP_NAMESPACE::AttachmentReference2::operator VkAttachmentReference2 & ( )
inline

Definition at line 18614 of file vulkan.hpp.

18615  {
18616  return *reinterpret_cast<VkAttachmentReference2*>( this );
18617  }

◆ operator VkAttachmentReference2 const &()

VULKAN_HPP_NAMESPACE::AttachmentReference2::operator VkAttachmentReference2 const & ( ) const
inline

Definition at line 18609 of file vulkan.hpp.

18610  {
18611  return *reinterpret_cast<const VkAttachmentReference2*>( this );
18612  }

◆ operator!=()

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

Definition at line 18632 of file vulkan.hpp.

18633  {
18634  return !operator==( rhs );
18635  }
bool operator==(AttachmentReference2 const &rhs) const VULKAN_HPP_NOEXCEPT
Definition: vulkan.hpp:18623

References VULKAN_HPP_NAMESPACE::operator==().

◆ operator=() [1/2]

AttachmentReference2& VULKAN_HPP_NAMESPACE::AttachmentReference2::operator= ( AttachmentReference2 const &  rhs)
inline

Definition at line 18578 of file vulkan.hpp.

18579  {
18580  memcpy( static_cast<void *>( this ), &rhs, sizeof( AttachmentReference2 ) );
18581  return *this;
18582  }
#define memcpy
Definition: SDL_malloc.c:630
VULKAN_HPP_CONSTEXPR AttachmentReference2(uint32_t attachment_={}, VULKAN_HPP_NAMESPACE::ImageLayout layout_=VULKAN_HPP_NAMESPACE::ImageLayout::eUndefined, VULKAN_HPP_NAMESPACE::ImageAspectFlags aspectMask_={}) VULKAN_HPP_NOEXCEPT
Definition: vulkan.hpp:18560

References memcpy.

◆ operator=() [2/2]

AttachmentReference2& VULKAN_HPP_NAMESPACE::AttachmentReference2::operator= ( VkAttachmentReference2 const &  rhs)
inline

Definition at line 18572 of file vulkan.hpp.

18573  {
18574  *this = *reinterpret_cast<VULKAN_HPP_NAMESPACE::AttachmentReference2 const *>( &rhs );
18575  return *this;
18576  }

◆ operator==()

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

Definition at line 18623 of file vulkan.hpp.

18624  {
18625  return ( sType == rhs.sType )
18626  && ( pNext == rhs.pNext )
18627  && ( attachment == rhs.attachment )
18628  && ( layout == rhs.layout )
18629  && ( aspectMask == rhs.aspectMask );
18630  }
GLenum attachment
const VULKAN_HPP_NAMESPACE::StructureType sType
Definition: vulkan.hpp:18641

◆ setAspectMask()

AttachmentReference2& VULKAN_HPP_NAMESPACE::AttachmentReference2::setAspectMask ( VULKAN_HPP_NAMESPACE::ImageAspectFlags  aspectMask_)
inline

Definition at line 18602 of file vulkan.hpp.

18603  {
18604  aspectMask = aspectMask_;
18605  return *this;
18606  }

◆ setAttachment()

AttachmentReference2& VULKAN_HPP_NAMESPACE::AttachmentReference2::setAttachment ( uint32_t  attachment_)
inline

Definition at line 18590 of file vulkan.hpp.

18591  {
18592  attachment = attachment_;
18593  return *this;
18594  }

◆ setLayout()

AttachmentReference2& VULKAN_HPP_NAMESPACE::AttachmentReference2::setLayout ( VULKAN_HPP_NAMESPACE::ImageLayout  layout_)
inline

Definition at line 18596 of file vulkan.hpp.

18597  {
18598  layout = layout_;
18599  return *this;
18600  }

◆ setPNext()

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

Definition at line 18584 of file vulkan.hpp.

18585  {
18586  pNext = pNext_;
18587  return *this;
18588  }

Field Documentation

◆ allowDuplicate

const bool VULKAN_HPP_NAMESPACE::AttachmentReference2::allowDuplicate = false
static

Definition at line 18556 of file vulkan.hpp.

◆ aspectMask

VULKAN_HPP_NAMESPACE::ImageAspectFlags VULKAN_HPP_NAMESPACE::AttachmentReference2::aspectMask = {}

Definition at line 18645 of file vulkan.hpp.

◆ attachment

uint32_t VULKAN_HPP_NAMESPACE::AttachmentReference2::attachment = {}

Definition at line 18643 of file vulkan.hpp.

◆ layout

VULKAN_HPP_NAMESPACE::ImageLayout VULKAN_HPP_NAMESPACE::AttachmentReference2::layout = VULKAN_HPP_NAMESPACE::ImageLayout::eUndefined

Definition at line 18644 of file vulkan.hpp.

◆ pNext

const void* VULKAN_HPP_NAMESPACE::AttachmentReference2::pNext = {}

Definition at line 18642 of file vulkan.hpp.

◆ structureType

VULKAN_HPP_CONST_OR_CONSTEXPR StructureType VULKAN_HPP_NAMESPACE::AttachmentReference2::structureType = StructureType::eAttachmentReference2
static

Definition at line 18557 of file vulkan.hpp.

◆ sType

const VULKAN_HPP_NAMESPACE::StructureType VULKAN_HPP_NAMESPACE::AttachmentReference2::sType = StructureType::eAttachmentReference2

Definition at line 18641 of file vulkan.hpp.


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