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  }

◆ AttachmentDescription() [2/2]

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

Definition at line 28436 of file vulkan.hpp.

28437  {
28438  memcpy( this, &rhs, sizeof( AttachmentDescription ) );
28439  }

References memcpy.

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  }

References operator==().

◆ operator=()

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

Definition at line 28441 of file vulkan.hpp.

28442  {
28443  memcpy( this, &rhs, sizeof( AttachmentDescription ) );
28444  return *this;
28445  }

References memcpy.

◆ operator==()

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

Definition at line 28510 of file vulkan.hpp.

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  }

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

Referenced by operator!=().

◆ 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  }

References finalLayout.

◆ 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  }

References 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  }

◆ 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  }

References initialLayout.

◆ 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  }

References loadOp.

◆ 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  }

◆ 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  }

References stencilLoadOp.

◆ 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  }

References stencilStoreOp.

◆ 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  }

References storeOp.

Field Documentation

◆ finalLayout

ImageLayout VULKAN_HPP_NAMESPACE::AttachmentDescription::finalLayout

Definition at line 28536 of file vulkan.hpp.

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

◆ 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==(), and setInitialLayout().

◆ loadOp

AttachmentLoadOp VULKAN_HPP_NAMESPACE::AttachmentDescription::loadOp

Definition at line 28531 of file vulkan.hpp.

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

◆ 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==(), and setStencilLoadOp().

◆ stencilStoreOp

AttachmentStoreOp VULKAN_HPP_NAMESPACE::AttachmentDescription::stencilStoreOp

Definition at line 28534 of file vulkan.hpp.

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

◆ storeOp

AttachmentStoreOp VULKAN_HPP_NAMESPACE::AttachmentDescription::storeOp

Definition at line 28532 of file vulkan.hpp.

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


The documentation for this struct was generated from the following file:
format
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
Definition: SDL_opengl.h:1572
VULKAN_HPP_NAMESPACE::AttachmentDescription::stencilLoadOp
AttachmentLoadOp stencilLoadOp
Definition: vulkan.hpp:28533
VULKAN_HPP_NAMESPACE::AttachmentDescription::storeOp
AttachmentStoreOp storeOp
Definition: vulkan.hpp:28532
VULKAN_HPP_NAMESPACE::AttachmentDescription::loadOp
AttachmentLoadOp loadOp
Definition: vulkan.hpp:28531
samples
GLsizei samples
Definition: SDL_opengl_glext.h:1188
VULKAN_HPP_NAMESPACE::AttachmentDescription::finalLayout
ImageLayout finalLayout
Definition: vulkan.hpp:28536
memcpy
#define memcpy
Definition: SDL_malloc.c:630
VkAttachmentDescription
Definition: vulkan_core.h:2618
VULKAN_HPP_NAMESPACE::AttachmentDescription::operator==
bool operator==(AttachmentDescription const &rhs) const
Definition: vulkan.hpp:28510
VULKAN_HPP_NAMESPACE::AttachmentDescription::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)
Definition: vulkan.hpp:28415
VULKAN_HPP_NAMESPACE::AttachmentDescription::samples
SampleCountFlagBits samples
Definition: vulkan.hpp:28530
VULKAN_HPP_NAMESPACE::AttachmentDescription::format
Format format
Definition: vulkan.hpp:28529
flags_
set set set set set set set set set set set set set set set set set set set set *set set set macro pixldst op &r &cond WK op &r &cond WK op &r &cond WK else op &m &cond &ia op &r &cond WK else op &m &cond &ia elseif elseif else error unsupported base if elseif elseif else error unsupported unaligned pixldst unaligned endm macro pixst base base else pixldst base endif endm macro PF base if bpp PF set rept prefetch_distance PF set OFFSET endr endif endm macro preload_leading_step2 base if bpp ifc DST PF PF else if bpp lsl PF PF lsl PF PF lsl PF PF PF else PF lsl PF lsl PF lsl PF endif SIZE macro preload_middle scratch_holds_offset if bpp if else PF PF endif endif endif endm macro preload_trailing base if bpp if bpp *pix_per_block PF PF lsl PF PF PF PF PF else PF lsl PF lsl PF PF PF PF PF base if bpp if narrow_case &&bpp<=dst_w_bpp) PF bic, WK0, base, #31 PF pld,[WK0] PF add, WK1, base, X, LSL #bpp_shift PF sub, WK1, WK1, #1 PF bic, WK1, WK1, #31 PF cmp, WK1, WK0 PF beq, 90f PF pld,[WK1]90:.else PF bic, WK0, base, #31 PF pld,[WK0] PF add, WK1, base, X, lsl #bpp_shift PF sub, WK1, WK1, #1 PF bic, WK1, WK1, #31 PF cmp, WK1, WK0 PF beq, 92f91:PF add, WK0, WK0, #32 PF cmp, WK0, WK1 PF pld,[WK0] PF bne, 91b92:.endif .endif.endm.macro conditional_process1_helper cond, process_head, process_tail, numbytes, firstreg, unaligned_src, unaligned_mask, decrementx process_head cond, numbytes, firstreg, unaligned_src, unaligned_mask, 0 .if decrementx sub &cond X, X, #8 *numbytes/dst_w_bpp .endif process_tail cond, numbytes, firstreg .if !((flags) &FLAG_PROCESS_DOES_STORE) pixst cond, numbytes, firstreg, DST .endif.endm.macro conditional_process1 cond, process_head, process_tail, numbytes, firstreg, unaligned_src, unaligned_mask, decrementx .if(flags) &FLAG_BRANCH_OVER .ifc cond, mi bpl 100f .endif .ifc cond, cs bcc 100f .endif .ifc cond, ne beq 100f .endif conditional_process1_helper, process_head, process_tail, numbytes, firstreg, unaligned_src, unaligned_mask, decrementx100:.else conditional_process1_helper cond, process_head, process_tail, numbytes, firstreg, unaligned_src, unaligned_mask, decrementx .endif.endm.macro conditional_process2 test, cond1, cond2, process_head, process_tail, numbytes1, numbytes2, firstreg1, firstreg2, unaligned_src, unaligned_mask, decrementx .if(flags) &(FLAG_DST_READWRITE|FLAG_BRANCH_OVER|FLAG_PROCESS_CORRUPTS_PSR|FLAG_PROCESS_DOES_STORE) test conditional_process1 cond1, process_head, process_tail, numbytes1, firstreg1, unaligned_src, unaligned_mask, decrementx .if(flags) &FLAG_PROCESS_CORRUPTS_PSR test .endif conditional_process1 cond2, process_head, process_tail, numbytes2, firstreg2, unaligned_src, unaligned_mask, decrementx .else test process_head cond1, numbytes1, firstreg1, unaligned_src, unaligned_mask, 0 process_head cond2, numbytes2, firstreg2, unaligned_src, unaligned_mask, 0 .if decrementx sub &cond1 X, X, #8 *numbytes1/dst_w_bpp sub &cond2 X, X, #8 *numbytes2/dst_w_bpp .endif process_tail cond1, numbytes1, firstreg1 process_tail cond2, numbytes2, firstreg2 pixst cond1, numbytes1, firstreg1, DST pixst cond2, numbytes2, firstreg2, DST .endif.endm.macro test_bits_1_0_ptr .if(flags) &FLAG_PROCESS_CORRUPTS_WK0 movs SCRATCH, X, lsl #32-1 .else movs SCRATCH, WK0, lsl #32-1 .endif.endm.macro test_bits_3_2_ptr .if(flags) &FLAG_PROCESS_CORRUPTS_WK0 movs SCRATCH, X, lsl #32-3 .else movs SCRATCH, WK0, lsl #32-3 .endif.endm.macro leading_15bytes process_head, process_tail .set DECREMENT_X, 1 .if(flags) &FLAG_PROCESS_CORRUPTS_WK0 .set DECREMENT_X, 0 sub X, X, WK0, lsr #dst_bpp_shift str X,[sp, #LINE_SAVED_REG_COUNT *4] mov X, WK0 .endif .if dst_w_bpp==8 conditional_process2 test_bits_1_0_ptr, mi, cs, process_head, process_tail, 1, 2, 1, 2, 1, 1, DECREMENT_X .elseif dst_w_bpp==16 test_bits_1_0_ptr conditional_process1 cs, process_head, process_tail, 2, 2, 1, 1, DECREMENT_X .endif conditional_process2 test_bits_3_2_ptr, mi, cs, process_head, process_tail, 4, 8, 1, 2, 1, 1, DECREMENT_X .if(flags) &FLAG_PROCESS_CORRUPTS_WK0 ldr X,[sp, #LINE_SAVED_REG_COUNT *4] .endif.endm.macro test_bits_3_2_pix movs SCRATCH, X, lsl #dst_bpp_shift+32-3.endm.macro test_bits_1_0_pix .if dst_w_bpp==8 movs SCRATCH, X, lsl #dst_bpp_shift+32-1 .else movs SCRATCH, X, lsr #1 .endif.endm.macro trailing_15bytes process_head, process_tail, unaligned_src, unaligned_mask conditional_process2 test_bits_3_2_pix, cs, mi, process_head, process_tail, 8, 4, 0, 2, unaligned_src, unaligned_mask, 0 .if dst_w_bpp==16 test_bits_1_0_pix conditional_process1 cs, process_head, process_tail, 2, 0, unaligned_src, unaligned_mask, 0 .elseif dst_w_bpp==8 conditional_process2 test_bits_1_0_pix, cs, mi, process_head, process_tail, 2, 1, 0, 1, unaligned_src, unaligned_mask, 0 .endif.endm.macro wide_case_inner_loop process_head, process_tail, unaligned_src, unaligned_mask, dst_alignment110:.set SUBBLOCK, 0 .rept pix_per_block *dst_w_bpp/128 process_head, 16, 0, unaligned_src, unaligned_mask, 1 .if(src_bpp > 0) &&(mask_bpp==0) &&((flags) &FLAG_PROCESS_PRESERVES_SCRATCH) preload_middle src_bpp, SRC, 1 .elseif(src_bpp==0) &&(mask_bpp > 0) &&((flags) &FLAG_PROCESS_PRESERVES_SCRATCH) preload_middle mask_bpp, MASK, 1 .else preload_middle src_bpp, SRC, 0 preload_middle mask_bpp, MASK, 0 .endif .if(dst_r_bpp > 0) &&((SUBBLOCK % 2)==0) &&(((flags) &FLAG_NO_PRELOAD_DST)==0) PF pld,[DST, #32 *prefetch_distance - dst_alignment] .endif process_tail, 16, 0 .if !((flags) &FLAG_PROCESS_DOES_STORE) pixst, 16, 0, DST .endif .set SUBBLOCK, SUBBLOCK+1 .endr subs X, X, #pix_per_block bhs 110b.endm.macro wide_case_inner_loop_and_trailing_pixels process_head, process_tail, process_inner_loop, exit_label, unaligned_src, unaligned_mask .if dst_r_bpp > tst bne process_inner_loop DST_PRELOAD_BIAS endif preload_trailing SRC preload_trailing MASK DST endif add medium_case_inner_loop_and_trailing_pixels unaligned_mask endm macro medium_case_inner_loop_and_trailing_pixels DST endif subs bhs tst beq exit_label trailing_15bytes unaligned_mask endm macro narrow_case_inner_loop_and_trailing_pixels unaligned_mask tst conditional_process1 trailing_15bytes unaligned_mask endm macro switch_on_alignment exit_label if bne endif if bne endif action if endif if bne endif action if endif endif endm macro end_of_line last_one if SINGLE_SCANLINE ifc b endif else if vars_spilled word LINE_SAVED_REGS endif subs if vars_spilled endif endif add STRIDE_D if src_bpp add STRIDE_S endif if mask_bpp add STRIDE_M endif if restore_x mov ORIG_W endif bhs loop_label ifc if vars_spilled b else b endif else flags_
Definition: pixman-arm-simd-asm.h:590
VULKAN_HPP_NAMESPACE::AttachmentDescription::initialLayout
ImageLayout initialLayout
Definition: vulkan.hpp:28535
VULKAN_HPP_NAMESPACE::AttachmentDescription::stencilStoreOp
AttachmentStoreOp stencilStoreOp
Definition: vulkan.hpp:28534
flags
GLbitfield flags
Definition: SDL_opengl_glext.h:1483
VULKAN_HPP_NAMESPACE::AttachmentDescription::flags
AttachmentDescriptionFlags flags
Definition: vulkan.hpp:28528