SDL  2.0
VULKAN_HPP_NAMESPACE::StructureChain< StructureElements > Class Template Reference

#include <vulkan.hpp>

+ Inheritance diagram for VULKAN_HPP_NAMESPACE::StructureChain< StructureElements >:
+ Collaboration diagram for VULKAN_HPP_NAMESPACE::StructureChain< StructureElements >:

Public Member Functions

 StructureChain ()
 
 StructureChain (StructureChain const &rhs)
 
 StructureChain (StructureElements const &... elems)
 
StructureChainoperator= (StructureChain const &rhs)
 
template<typename ClassType >
ClassType & get ()
 

Private Member Functions

template<typename List , typename X >
void link ()
 
template<typename List , typename X , typename Y , typename ... Z>
void link ()
 
template<typename List , typename X >
void linkAndCopy (StructureChain const &rhs)
 
template<typename List , typename X , typename Y , typename ... Z>
void linkAndCopy (StructureChain const &rhs)
 
template<typename List , typename X >
void linkAndCopyElements (X const &xelem)
 
template<typename List , typename X , typename Y , typename ... Z>
void linkAndCopyElements (X const &xelem, Y const &yelem, Z const &... zelem)
 
- Private Member Functions inherited from VULKAN_HPP_NAMESPACE::StructureChainElement< StructureElements >
 operator StructureElements & ()
 
 operator const StructureElements & () const
 

Detailed Description

template<typename ... StructureElements>
class VULKAN_HPP_NAMESPACE::StructureChain< StructureElements >

Definition at line 521 of file vulkan.hpp.

Constructor & Destructor Documentation

◆ StructureChain() [1/3]

template<typename ... StructureElements>
VULKAN_HPP_NAMESPACE::StructureChain< StructureElements >::StructureChain ( )
inline

Definition at line 524 of file vulkan.hpp.

525  {
526  link<void, StructureElements...>();
527  }

References VULKAN_HPP_NAMESPACE::StructureChain< StructureElements >::link(), and void.

◆ StructureChain() [2/3]

template<typename ... StructureElements>
VULKAN_HPP_NAMESPACE::StructureChain< StructureElements >::StructureChain ( StructureChain< StructureElements > const &  rhs)
inline

Definition at line 529 of file vulkan.hpp.

530  {
531  linkAndCopy<void, StructureElements...>(rhs);
532  }

References VULKAN_HPP_NAMESPACE::StructureChain< StructureElements >::linkAndCopy(), and void.

◆ StructureChain() [3/3]

template<typename ... StructureElements>
VULKAN_HPP_NAMESPACE::StructureChain< StructureElements >::StructureChain ( StructureElements const &...  elems)
inline

Definition at line 534 of file vulkan.hpp.

535  {
536  linkAndCopyElements<void, StructureElements...>(elems...);
537  }

References VULKAN_HPP_NAMESPACE::StructureChain< StructureElements >::linkAndCopyElements(), and void.

Member Function Documentation

◆ get()

template<typename ... StructureElements>
template<typename ClassType >
ClassType& VULKAN_HPP_NAMESPACE::StructureChain< StructureElements >::get ( )
inline

Definition at line 545 of file vulkan.hpp.

545 { return static_cast<ClassType&>(*this);}

◆ link() [1/2]

template<typename ... StructureElements>
template<typename List , typename X >
void VULKAN_HPP_NAMESPACE::StructureChain< StructureElements >::link ( )
inlineprivate

Definition at line 549 of file vulkan.hpp.

550  {
551  static_assert(extendCheck<List, X>::valid, "The structure chain is not valid!");
552  }

Referenced by VULKAN_HPP_NAMESPACE::StructureChain< StructureElements >::StructureChain().

◆ link() [2/2]

template<typename ... StructureElements>
template<typename List , typename X , typename Y , typename ... Z>
void VULKAN_HPP_NAMESPACE::StructureChain< StructureElements >::link ( )
inlineprivate

Definition at line 555 of file vulkan.hpp.

556  {
557  static_assert(extendCheck<List,X>::valid, "The structure chain is not valid!");
558  X& x = static_cast<X&>(*this);
559  Y& y = static_cast<Y&>(*this);
560  x.pNext = &y;
561  link<TypeList<List, X>, Y, Z...>();
562  }

References X, and Y.

◆ linkAndCopy() [1/2]

template<typename ... StructureElements>
template<typename List , typename X >
void VULKAN_HPP_NAMESPACE::StructureChain< StructureElements >::linkAndCopy ( StructureChain< StructureElements > const &  rhs)
inlineprivate

Definition at line 565 of file vulkan.hpp.

566  {
567  static_assert(extendCheck<List, X>::valid, "The structure chain is not valid!");
568  static_cast<X&>(*this) = static_cast<X const &>(rhs);
569  }

References X.

Referenced by VULKAN_HPP_NAMESPACE::StructureChain< StructureElements >::operator=(), and VULKAN_HPP_NAMESPACE::StructureChain< StructureElements >::StructureChain().

◆ linkAndCopy() [2/2]

template<typename ... StructureElements>
template<typename List , typename X , typename Y , typename ... Z>
void VULKAN_HPP_NAMESPACE::StructureChain< StructureElements >::linkAndCopy ( StructureChain< StructureElements > const &  rhs)
inlineprivate

Definition at line 572 of file vulkan.hpp.

573  {
574  static_assert(extendCheck<List, X>::valid, "The structure chain is not valid!");
575  X& x = static_cast<X&>(*this);
576  Y& y = static_cast<Y&>(*this);
577  x = static_cast<X const &>(rhs);
578  x.pNext = &y;
579  linkAndCopy<TypeList<List, X>, Y, Z...>(rhs);
580  }

References X, and Y.

◆ linkAndCopyElements() [1/2]

template<typename ... StructureElements>
template<typename List , typename X >
void VULKAN_HPP_NAMESPACE::StructureChain< StructureElements >::linkAndCopyElements ( X const &  xelem)
inlineprivate

Definition at line 583 of file vulkan.hpp.

584  {
585  static_assert(extendCheck<List, X>::valid, "The structure chain is not valid!");
586  static_cast<X&>(*this) = xelem;
587  }

References X.

Referenced by VULKAN_HPP_NAMESPACE::StructureChain< StructureElements >::StructureChain().

◆ linkAndCopyElements() [2/2]

template<typename ... StructureElements>
template<typename List , typename X , typename Y , typename ... Z>
void VULKAN_HPP_NAMESPACE::StructureChain< StructureElements >::linkAndCopyElements ( X const &  xelem,
Y const &  yelem,
Z const &...  zelem 
)
inlineprivate

Definition at line 590 of file vulkan.hpp.

591  {
592  static_assert(extendCheck<List, X>::valid, "The structure chain is not valid!");
593  X& x = static_cast<X&>(*this);
594  Y& y = static_cast<Y&>(*this);
595  x = xelem;
596  x.pNext = &y;
597  linkAndCopyElements<TypeList<List, X>, Y, Z...>(yelem, zelem...);
598  }

References X, and Y.

◆ operator=()

template<typename ... StructureElements>
StructureChain& VULKAN_HPP_NAMESPACE::StructureChain< StructureElements >::operator= ( StructureChain< StructureElements > const &  rhs)
inline

Definition at line 539 of file vulkan.hpp.

540  {
541  linkAndCopy<void, StructureElements...>(rhs);
542  return *this;
543  }

References VULKAN_HPP_NAMESPACE::StructureChain< StructureElements >::linkAndCopy(), and void.


The documentation for this class was generated from the following file:
VULKAN_HPP_NAMESPACE::StructureChain::link
void link()
Definition: vulkan.hpp:549
x
GLint GLint GLint GLint GLint x
Definition: SDL_opengl.h:1574
X
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 X
Definition: pixman-arm-simd-asm.h:255
VULKAN_HPP_NAMESPACE::extendCheck::valid
static const bool valid
Definition: vulkan.hpp:495
y
GLint GLint GLint GLint GLint GLint y
Definition: SDL_opengl.h:1574
VULKAN_HPP_NAMESPACE::StructureChain::linkAndCopyElements
void linkAndCopyElements(X const &xelem)
Definition: vulkan.hpp:583
Y
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 Y
Definition: pixman-arm-simd-asm.h:554
void
SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char const char SDL_SCANF_FORMAT_STRING const char return SDL_ThreadFunction const char void return Uint32 return Uint32 void
Definition: SDL_dynapi_procs.h:89
VULKAN_HPP_NAMESPACE::StructureChain::linkAndCopy
void linkAndCopy(StructureChain const &rhs)
Definition: vulkan.hpp:565