SDL  2.0
VULKAN_HPP_NAMESPACE::AttachmentDescription Struct Reference

#include <vulkan.hpp>

+ Collaboration diagram for VULKAN_HPP_NAMESPACE::AttachmentDescription:

Public Member Functions

 AttachmentDescription (AttachmentDescriptionFlags flags_=AttachmentDescriptionFlags(), Format format_=Format::eUndefined, SampleCountFlagBits samples_=SampleCountFlagBits::e1, AttachmentLoadOp loadOp_=AttachmentLoadOp::eLoad, AttachmentStoreOp storeOp_=AttachmentStoreOp::eStore, AttachmentLoadOp stencilLoadOp_=AttachmentLoadOp::eLoad, AttachmentStoreOp stencilStoreOp_=AttachmentStoreOp::eStore, ImageLayout initialLayout_=ImageLayout::eUndefined, ImageLayout finalLayout_=ImageLayout::eUndefined)
 
 AttachmentDescription (VkAttachmentDescription const &rhs)
 
AttachmentDescriptionoperator= (VkAttachmentDescription const &rhs)
 
AttachmentDescriptionsetFlags (AttachmentDescriptionFlags flags_)
 
AttachmentDescriptionsetFormat (Format format_)
 
AttachmentDescriptionsetSamples (SampleCountFlagBits samples_)
 
AttachmentDescriptionsetLoadOp (AttachmentLoadOp loadOp_)
 
AttachmentDescriptionsetStoreOp (AttachmentStoreOp storeOp_)
 
AttachmentDescriptionsetStencilLoadOp (AttachmentLoadOp stencilLoadOp_)
 
AttachmentDescriptionsetStencilStoreOp (AttachmentStoreOp stencilStoreOp_)
 
AttachmentDescriptionsetInitialLayout (ImageLayout initialLayout_)
 
AttachmentDescriptionsetFinalLayout (ImageLayout finalLayout_)
 
 operator VkAttachmentDescription const & () const
 
 operator VkAttachmentDescription & ()
 
bool operator== (AttachmentDescription const &rhs) const
 
bool operator!= (AttachmentDescription const &rhs) const
 

Data Fields

AttachmentDescriptionFlags flags
 
Format format
 
SampleCountFlagBits samples
 
AttachmentLoadOp loadOp
 
AttachmentStoreOp storeOp
 
AttachmentLoadOp stencilLoadOp
 
AttachmentStoreOp stencilStoreOp
 
ImageLayout initialLayout
 
ImageLayout finalLayout
 

Detailed Description

Definition at line 28413 of file vulkan.hpp.

Constructor & Destructor Documentation

◆ AttachmentDescription() [1/2]

VULKAN_HPP_NAMESPACE::AttachmentDescription::AttachmentDescription ( AttachmentDescriptionFlags  flags_ = AttachmentDescriptionFlags(),
Format  format_ = Format::eUndefined,
SampleCountFlagBits  samples_ = SampleCountFlagBits::e1,
AttachmentLoadOp  loadOp_ = AttachmentLoadOp::eLoad,
AttachmentStoreOp  storeOp_ = AttachmentStoreOp::eStore,
AttachmentLoadOp  stencilLoadOp_ = AttachmentLoadOp::eLoad,
AttachmentStoreOp  stencilStoreOp_ = AttachmentStoreOp::eStore,
ImageLayout  initialLayout_ = ImageLayout::eUndefined,
ImageLayout  finalLayout_ = ImageLayout::eUndefined 
)
inline

Definition at line 28415 of file vulkan.hpp.

28424  : flags( flags_ )
28425  , format( format_ )
28426  , samples( samples_ )
28427  , loadOp( loadOp_ )
28428  , storeOp( storeOp_ )
28429  , stencilLoadOp( stencilLoadOp_ )
28430  , stencilStoreOp( stencilStoreOp_ )
28431  , initialLayout( initialLayout_ )
28432  , finalLayout( finalLayout_ )
28433  {
28434  }
AttachmentDescriptionFlags flags
Definition: vulkan.hpp:28528

◆ AttachmentDescription() [2/2]

VULKAN_HPP_NAMESPACE::AttachmentDescription::AttachmentDescription ( VkAttachmentDescription const &  rhs)
inline

Definition at line 28436 of file vulkan.hpp.

References memcpy.

28437  {
28438  memcpy( this, &rhs, sizeof( AttachmentDescription ) );
28439  }
AttachmentDescription(AttachmentDescriptionFlags flags_=AttachmentDescriptionFlags(), Format format_=Format::eUndefined, SampleCountFlagBits samples_=SampleCountFlagBits::e1, AttachmentLoadOp loadOp_=AttachmentLoadOp::eLoad, AttachmentStoreOp storeOp_=AttachmentStoreOp::eStore, AttachmentLoadOp stencilLoadOp_=AttachmentLoadOp::eLoad, AttachmentStoreOp stencilStoreOp_=AttachmentStoreOp::eStore, ImageLayout initialLayout_=ImageLayout::eUndefined, ImageLayout finalLayout_=ImageLayout::eUndefined)
Definition: vulkan.hpp:28415
#define memcpy
Definition: SDL_malloc.c:630

Member Function Documentation

◆ operator VkAttachmentDescription &()

VULKAN_HPP_NAMESPACE::AttachmentDescription::operator VkAttachmentDescription & ( )
inline

Definition at line 28505 of file vulkan.hpp.

28506  {
28507  return *reinterpret_cast<VkAttachmentDescription*>(this);
28508  }

◆ operator VkAttachmentDescription const &()

VULKAN_HPP_NAMESPACE::AttachmentDescription::operator VkAttachmentDescription const & ( ) const
inline

Definition at line 28500 of file vulkan.hpp.

28501  {
28502  return *reinterpret_cast<const VkAttachmentDescription*>(this);
28503  }

◆ operator!=()

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

Definition at line 28523 of file vulkan.hpp.

28524  {
28525  return !operator==( rhs );
28526  }
bool operator==(AttachmentDescription const &rhs) const
Definition: vulkan.hpp:28510

◆ operator=()

AttachmentDescription& VULKAN_HPP_NAMESPACE::AttachmentDescription::operator= ( VkAttachmentDescription const &  rhs)
inline

Definition at line 28441 of file vulkan.hpp.

References memcpy.

28442  {
28443  memcpy( this, &rhs, sizeof( AttachmentDescription ) );
28444  return *this;
28445  }
AttachmentDescription(AttachmentDescriptionFlags flags_=AttachmentDescriptionFlags(), Format format_=Format::eUndefined, SampleCountFlagBits samples_=SampleCountFlagBits::e1, AttachmentLoadOp loadOp_=AttachmentLoadOp::eLoad, AttachmentStoreOp storeOp_=AttachmentStoreOp::eStore, AttachmentLoadOp stencilLoadOp_=AttachmentLoadOp::eLoad, AttachmentStoreOp stencilStoreOp_=AttachmentStoreOp::eStore, ImageLayout initialLayout_=ImageLayout::eUndefined, ImageLayout finalLayout_=ImageLayout::eUndefined)
Definition: vulkan.hpp:28415
#define memcpy
Definition: SDL_malloc.c:630

◆ operator==()

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

Definition at line 28510 of file vulkan.hpp.

References finalLayout, flags, format, initialLayout, loadOp, samples, stencilLoadOp, stencilStoreOp, and storeOp.

28511  {
28512  return ( flags == rhs.flags )
28513  && ( format == rhs.format )
28514  && ( samples == rhs.samples )
28515  && ( loadOp == rhs.loadOp )
28516  && ( storeOp == rhs.storeOp )
28517  && ( stencilLoadOp == rhs.stencilLoadOp )
28518  && ( stencilStoreOp == rhs.stencilStoreOp )
28519  && ( initialLayout == rhs.initialLayout )
28520  && ( finalLayout == rhs.finalLayout );
28521  }
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
Definition: SDL_opengl.h:1572
GLbitfield flags
GLsizei samples

◆ setFinalLayout()

AttachmentDescription& VULKAN_HPP_NAMESPACE::AttachmentDescription::setFinalLayout ( ImageLayout  finalLayout_)
inline

Definition at line 28494 of file vulkan.hpp.

28495  {
28496  finalLayout = finalLayout_;
28497  return *this;
28498  }

◆ setFlags()

AttachmentDescription& VULKAN_HPP_NAMESPACE::AttachmentDescription::setFlags ( AttachmentDescriptionFlags  flags_)
inline

Definition at line 28446 of file vulkan.hpp.

28447  {
28448  flags = flags_;
28449  return *this;
28450  }
GLbitfield flags

◆ setFormat()

AttachmentDescription& VULKAN_HPP_NAMESPACE::AttachmentDescription::setFormat ( Format  format_)
inline

Definition at line 28452 of file vulkan.hpp.

28453  {
28454  format = format_;
28455  return *this;
28456  }
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
Definition: SDL_opengl.h:1572

◆ setInitialLayout()

AttachmentDescription& VULKAN_HPP_NAMESPACE::AttachmentDescription::setInitialLayout ( ImageLayout  initialLayout_)
inline

Definition at line 28488 of file vulkan.hpp.

28489  {
28490  initialLayout = initialLayout_;
28491  return *this;
28492  }

◆ setLoadOp()

AttachmentDescription& VULKAN_HPP_NAMESPACE::AttachmentDescription::setLoadOp ( AttachmentLoadOp  loadOp_)
inline

Definition at line 28464 of file vulkan.hpp.

28465  {
28466  loadOp = loadOp_;
28467  return *this;
28468  }

◆ setSamples()

AttachmentDescription& VULKAN_HPP_NAMESPACE::AttachmentDescription::setSamples ( SampleCountFlagBits  samples_)
inline

Definition at line 28458 of file vulkan.hpp.

28459  {
28460  samples = samples_;
28461  return *this;
28462  }
GLsizei samples

◆ setStencilLoadOp()

AttachmentDescription& VULKAN_HPP_NAMESPACE::AttachmentDescription::setStencilLoadOp ( AttachmentLoadOp  stencilLoadOp_)
inline

Definition at line 28476 of file vulkan.hpp.

28477  {
28478  stencilLoadOp = stencilLoadOp_;
28479  return *this;
28480  }

◆ setStencilStoreOp()

AttachmentDescription& VULKAN_HPP_NAMESPACE::AttachmentDescription::setStencilStoreOp ( AttachmentStoreOp  stencilStoreOp_)
inline

Definition at line 28482 of file vulkan.hpp.

28483  {
28484  stencilStoreOp = stencilStoreOp_;
28485  return *this;
28486  }

◆ setStoreOp()

AttachmentDescription& VULKAN_HPP_NAMESPACE::AttachmentDescription::setStoreOp ( AttachmentStoreOp  storeOp_)
inline

Definition at line 28470 of file vulkan.hpp.

28471  {
28472  storeOp = storeOp_;
28473  return *this;
28474  }

Field Documentation

◆ finalLayout

ImageLayout VULKAN_HPP_NAMESPACE::AttachmentDescription::finalLayout

Definition at line 28536 of file vulkan.hpp.

Referenced by operator==().

◆ flags

AttachmentDescriptionFlags VULKAN_HPP_NAMESPACE::AttachmentDescription::flags

Definition at line 28528 of file vulkan.hpp.

Referenced by operator==().

◆ format

Format VULKAN_HPP_NAMESPACE::AttachmentDescription::format

Definition at line 28529 of file vulkan.hpp.

Referenced by operator==().

◆ initialLayout

ImageLayout VULKAN_HPP_NAMESPACE::AttachmentDescription::initialLayout

Definition at line 28535 of file vulkan.hpp.

Referenced by operator==().

◆ loadOp

AttachmentLoadOp VULKAN_HPP_NAMESPACE::AttachmentDescription::loadOp

Definition at line 28531 of file vulkan.hpp.

Referenced by operator==().

◆ samples

SampleCountFlagBits VULKAN_HPP_NAMESPACE::AttachmentDescription::samples

Definition at line 28530 of file vulkan.hpp.

Referenced by operator==().

◆ stencilLoadOp

AttachmentLoadOp VULKAN_HPP_NAMESPACE::AttachmentDescription::stencilLoadOp

Definition at line 28533 of file vulkan.hpp.

Referenced by operator==().

◆ stencilStoreOp

AttachmentStoreOp VULKAN_HPP_NAMESPACE::AttachmentDescription::stencilStoreOp

Definition at line 28534 of file vulkan.hpp.

Referenced by operator==().

◆ storeOp

AttachmentStoreOp VULKAN_HPP_NAMESPACE::AttachmentDescription::storeOp

Definition at line 28532 of file vulkan.hpp.

Referenced by operator==().


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