SDL  2.0
VULKAN_HPP_NAMESPACE::PipelineColorBlendStateCreateInfo Struct Reference

#include <vulkan.hpp>

+ Collaboration diagram for VULKAN_HPP_NAMESPACE::PipelineColorBlendStateCreateInfo:

Public Member Functions

 PipelineColorBlendStateCreateInfo (PipelineColorBlendStateCreateFlags flags_=PipelineColorBlendStateCreateFlags(), Bool32 logicOpEnable_=0, LogicOp logicOp_=LogicOp::eClear, uint32_t attachmentCount_=0, const PipelineColorBlendAttachmentState *pAttachments_=nullptr, std::array< float, 4 > const &blendConstants_={ { 0, 0, 0, 0 } })
 
 PipelineColorBlendStateCreateInfo (VkPipelineColorBlendStateCreateInfo const &rhs)
 
PipelineColorBlendStateCreateInfooperator= (VkPipelineColorBlendStateCreateInfo const &rhs)
 
PipelineColorBlendStateCreateInfosetPNext (const void *pNext_)
 
PipelineColorBlendStateCreateInfosetFlags (PipelineColorBlendStateCreateFlags flags_)
 
PipelineColorBlendStateCreateInfosetLogicOpEnable (Bool32 logicOpEnable_)
 
PipelineColorBlendStateCreateInfosetLogicOp (LogicOp logicOp_)
 
PipelineColorBlendStateCreateInfosetAttachmentCount (uint32_t attachmentCount_)
 
PipelineColorBlendStateCreateInfosetPAttachments (const PipelineColorBlendAttachmentState *pAttachments_)
 
PipelineColorBlendStateCreateInfosetBlendConstants (std::array< float, 4 > blendConstants_)
 
 operator VkPipelineColorBlendStateCreateInfo const & () const
 
 operator VkPipelineColorBlendStateCreateInfo & ()
 
bool operator== (PipelineColorBlendStateCreateInfo const &rhs) const
 
bool operator!= (PipelineColorBlendStateCreateInfo const &rhs) const
 

Data Fields

const voidpNext = nullptr
 
PipelineColorBlendStateCreateFlags flags
 
Bool32 logicOpEnable
 
LogicOp logicOp
 
uint32_t attachmentCount
 
const PipelineColorBlendAttachmentStatepAttachments
 
float blendConstants [4]
 

Private Attributes

StructureType sType = StructureType::ePipelineColorBlendStateCreateInfo
 

Detailed Description

Definition at line 23904 of file vulkan.hpp.

Constructor & Destructor Documentation

◆ PipelineColorBlendStateCreateInfo() [1/2]

VULKAN_HPP_NAMESPACE::PipelineColorBlendStateCreateInfo::PipelineColorBlendStateCreateInfo ( PipelineColorBlendStateCreateFlags  flags_ = PipelineColorBlendStateCreateFlags(),
Bool32  logicOpEnable_ = 0,
LogicOp  logicOp_ = LogicOp::eClear,
uint32_t  attachmentCount_ = 0,
const PipelineColorBlendAttachmentState pAttachments_ = nullptr,
std::array< float, 4 > const &  blendConstants_ = { { 0, 0, 0, 0 } } 
)
inline

Definition at line 23906 of file vulkan.hpp.

23911  { { 0, 0, 0, 0 } } )
23912  : flags( flags_ )
23913  , logicOpEnable( logicOpEnable_ )
23914  , logicOp( logicOp_ )
23915  , attachmentCount( attachmentCount_ )
23916  , pAttachments( pAttachments_ )
23917  {
23918  memcpy( &blendConstants, blendConstants_.data(), 4 * sizeof( float ) );
23919  }

◆ PipelineColorBlendStateCreateInfo() [2/2]

VULKAN_HPP_NAMESPACE::PipelineColorBlendStateCreateInfo::PipelineColorBlendStateCreateInfo ( VkPipelineColorBlendStateCreateInfo const &  rhs)
inline

Definition at line 23921 of file vulkan.hpp.

23922  {
23923  memcpy( this, &rhs, sizeof( PipelineColorBlendStateCreateInfo ) );
23924  }

References memcpy.

Member Function Documentation

◆ operator VkPipelineColorBlendStateCreateInfo &()

VULKAN_HPP_NAMESPACE::PipelineColorBlendStateCreateInfo::operator VkPipelineColorBlendStateCreateInfo & ( )
inline

Definition at line 23978 of file vulkan.hpp.

23979  {
23980  return *reinterpret_cast<VkPipelineColorBlendStateCreateInfo*>(this);
23981  }

◆ operator VkPipelineColorBlendStateCreateInfo const &()

VULKAN_HPP_NAMESPACE::PipelineColorBlendStateCreateInfo::operator VkPipelineColorBlendStateCreateInfo const & ( ) const
inline

Definition at line 23973 of file vulkan.hpp.

23974  {
23975  return *reinterpret_cast<const VkPipelineColorBlendStateCreateInfo*>(this);
23976  }

◆ operator!=()

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

Definition at line 23995 of file vulkan.hpp.

23996  {
23997  return !operator==( rhs );
23998  }

References operator==().

◆ operator=()

PipelineColorBlendStateCreateInfo& VULKAN_HPP_NAMESPACE::PipelineColorBlendStateCreateInfo::operator= ( VkPipelineColorBlendStateCreateInfo const &  rhs)
inline

Definition at line 23926 of file vulkan.hpp.

23927  {
23928  memcpy( this, &rhs, sizeof( PipelineColorBlendStateCreateInfo ) );
23929  return *this;
23930  }

References memcpy.

◆ operator==()

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

Definition at line 23983 of file vulkan.hpp.

23984  {
23985  return ( sType == rhs.sType )
23986  && ( pNext == rhs.pNext )
23987  && ( flags == rhs.flags )
23988  && ( logicOpEnable == rhs.logicOpEnable )
23989  && ( logicOp == rhs.logicOp )
23990  && ( attachmentCount == rhs.attachmentCount )
23991  && ( pAttachments == rhs.pAttachments )
23992  && ( memcmp( blendConstants, rhs.blendConstants, 4 * sizeof( float ) ) == 0 );
23993  }

References attachmentCount, blendConstants, flags, logicOp, logicOpEnable, pAttachments, pNext, and sType.

Referenced by operator!=().

◆ setAttachmentCount()

PipelineColorBlendStateCreateInfo& VULKAN_HPP_NAMESPACE::PipelineColorBlendStateCreateInfo::setAttachmentCount ( uint32_t  attachmentCount_)
inline

Definition at line 23955 of file vulkan.hpp.

23956  {
23957  attachmentCount = attachmentCount_;
23958  return *this;
23959  }

References attachmentCount.

◆ setBlendConstants()

PipelineColorBlendStateCreateInfo& VULKAN_HPP_NAMESPACE::PipelineColorBlendStateCreateInfo::setBlendConstants ( std::array< float, 4 >  blendConstants_)
inline

Definition at line 23967 of file vulkan.hpp.

23968  {
23969  memcpy( &blendConstants, blendConstants_.data(), 4 * sizeof( float ) );
23970  return *this;
23971  }

References blendConstants, and memcpy.

◆ setFlags()

PipelineColorBlendStateCreateInfo& VULKAN_HPP_NAMESPACE::PipelineColorBlendStateCreateInfo::setFlags ( PipelineColorBlendStateCreateFlags  flags_)
inline

Definition at line 23937 of file vulkan.hpp.

23938  {
23939  flags = flags_;
23940  return *this;
23941  }

References flags_.

◆ setLogicOp()

PipelineColorBlendStateCreateInfo& VULKAN_HPP_NAMESPACE::PipelineColorBlendStateCreateInfo::setLogicOp ( LogicOp  logicOp_)
inline

Definition at line 23949 of file vulkan.hpp.

23950  {
23951  logicOp = logicOp_;
23952  return *this;
23953  }

References logicOp.

◆ setLogicOpEnable()

PipelineColorBlendStateCreateInfo& VULKAN_HPP_NAMESPACE::PipelineColorBlendStateCreateInfo::setLogicOpEnable ( Bool32  logicOpEnable_)
inline

Definition at line 23943 of file vulkan.hpp.

23944  {
23945  logicOpEnable = logicOpEnable_;
23946  return *this;
23947  }

References logicOpEnable.

◆ setPAttachments()

PipelineColorBlendStateCreateInfo& VULKAN_HPP_NAMESPACE::PipelineColorBlendStateCreateInfo::setPAttachments ( const PipelineColorBlendAttachmentState pAttachments_)
inline

Definition at line 23961 of file vulkan.hpp.

23962  {
23963  pAttachments = pAttachments_;
23964  return *this;
23965  }

References pAttachments.

◆ setPNext()

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

Definition at line 23931 of file vulkan.hpp.

23932  {
23933  pNext = pNext_;
23934  return *this;
23935  }

References pNext.

Field Documentation

◆ attachmentCount

uint32_t VULKAN_HPP_NAMESPACE::PipelineColorBlendStateCreateInfo::attachmentCount

Definition at line 24008 of file vulkan.hpp.

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

◆ blendConstants

float VULKAN_HPP_NAMESPACE::PipelineColorBlendStateCreateInfo::blendConstants[4]

Definition at line 24010 of file vulkan.hpp.

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

◆ flags

PipelineColorBlendStateCreateFlags VULKAN_HPP_NAMESPACE::PipelineColorBlendStateCreateInfo::flags

Definition at line 24005 of file vulkan.hpp.

Referenced by operator==().

◆ logicOp

LogicOp VULKAN_HPP_NAMESPACE::PipelineColorBlendStateCreateInfo::logicOp

Definition at line 24007 of file vulkan.hpp.

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

◆ logicOpEnable

Bool32 VULKAN_HPP_NAMESPACE::PipelineColorBlendStateCreateInfo::logicOpEnable

Definition at line 24006 of file vulkan.hpp.

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

◆ pAttachments

const PipelineColorBlendAttachmentState* VULKAN_HPP_NAMESPACE::PipelineColorBlendStateCreateInfo::pAttachments

Definition at line 24009 of file vulkan.hpp.

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

◆ pNext

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

Definition at line 24004 of file vulkan.hpp.

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

◆ sType

StructureType VULKAN_HPP_NAMESPACE::PipelineColorBlendStateCreateInfo::sType = StructureType::ePipelineColorBlendStateCreateInfo
private

Definition at line 24001 of file vulkan.hpp.

Referenced by operator==().


The documentation for this struct was generated from the following file:
VULKAN_HPP_NAMESPACE::PipelineColorBlendStateCreateInfo::pAttachments
const PipelineColorBlendAttachmentState * pAttachments
Definition: vulkan.hpp:24009
VkPipelineColorBlendStateCreateInfo
Definition: vulkan_core.h:2443
memcpy
#define memcpy
Definition: SDL_malloc.c:630
VULKAN_HPP_NAMESPACE::PipelineColorBlendStateCreateInfo::attachmentCount
uint32_t attachmentCount
Definition: vulkan.hpp:24008
VULKAN_HPP_NAMESPACE::PipelineColorBlendStateCreateInfo::pNext
const void * pNext
Definition: vulkan.hpp:24004
VULKAN_HPP_NAMESPACE::PipelineColorBlendStateCreateInfo::sType
StructureType sType
Definition: vulkan.hpp:24001
VULKAN_HPP_NAMESPACE::PipelineColorBlendStateCreateInfo::blendConstants
float blendConstants[4]
Definition: vulkan.hpp:24010
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::PipelineColorBlendStateCreateInfo::logicOp
LogicOp logicOp
Definition: vulkan.hpp:24007
VULKAN_HPP_NAMESPACE::PipelineColorBlendStateCreateInfo::flags
PipelineColorBlendStateCreateFlags flags
Definition: vulkan.hpp:24005
flags
GLbitfield flags
Definition: SDL_opengl_glext.h:1483
VULKAN_HPP_NAMESPACE::PipelineColorBlendStateCreateInfo::PipelineColorBlendStateCreateInfo
PipelineColorBlendStateCreateInfo(PipelineColorBlendStateCreateFlags flags_=PipelineColorBlendStateCreateFlags(), Bool32 logicOpEnable_=0, LogicOp logicOp_=LogicOp::eClear, uint32_t attachmentCount_=0, const PipelineColorBlendAttachmentState *pAttachments_=nullptr, std::array< float, 4 > const &blendConstants_={ { 0, 0, 0, 0 } })
Definition: vulkan.hpp:23906
VULKAN_HPP_NAMESPACE::PipelineColorBlendStateCreateInfo::logicOpEnable
Bool32 logicOpEnable
Definition: vulkan.hpp:24006
VULKAN_HPP_NAMESPACE::PipelineColorBlendStateCreateInfo::operator==
bool operator==(PipelineColorBlendStateCreateInfo const &rhs) const
Definition: vulkan.hpp:23983