Package org.lwjgl.vulkan
Class VkPipelineColorBlendStateCreateInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPipelineColorBlendStateCreateInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPipelineColorBlendStateCreateInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying parameters of a newly created pipeline color blend state.Valid Usage
- If the independent blending feature is not enabled, all elements of
pAttachmentsmust be identical - If the logic operations feature is not enabled,
logicOpEnablemust beFALSE - If
logicOpEnableisTRUE,logicOpmust be a validVkLogicOpvalue - If the
rasterizationOrderColorAttachmentAccessfeature is not enabled,flagsmust not includePIPELINE_COLOR_BLEND_STATE_CREATE_RASTERIZATION_ORDER_ATTACHMENT_ACCESS_BIT_ARM
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO- Each
pNextmember of any structure (including this one) in thepNextchain must be eitherNULLor a pointer to a valid instance ofVkPipelineColorBlendAdvancedStateCreateInfoEXTorVkPipelineColorWriteCreateInfoEXT - The
sTypevalue of each struct in thepNextchain must be unique flagsmust be a valid combination ofVkPipelineColorBlendStateCreateFlagBitsvalues- If
attachmentCountis not 0,pAttachmentsmust be a valid pointer to an array ofattachmentCountvalidVkPipelineColorBlendAttachmentStatestructures
See Also
VkGraphicsPipelineCreateInfo,VkPipelineColorBlendAttachmentStateLayout
struct VkPipelineColorBlendStateCreateInfo { VkStructureTypesType(); void const *pNext(); VkPipelineColorBlendStateCreateFlagsflags(); VkBool32logicOpEnable(); VkLogicOplogicOp(); uint32_tattachmentCount();VkPipelineColorBlendAttachmentStateconst *pAttachments(); floatblendConstants()[4]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPipelineColorBlendStateCreateInfo.BufferAn array ofVkPipelineColorBlendStateCreateInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intATTACHMENTCOUNT
BLENDCONSTANTS
FLAGS
LOGICOP
LOGICOPENABLE
PATTACHMENTS
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPipelineColorBlendStateCreateInfo(java.nio.ByteBuffer container)Creates aVkPipelineColorBlendStateCreateInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intattachmentCount()the number ofVkPipelineColorBlendAttachmentStateelements inpAttachments.java.nio.FloatBufferblendConstants()a pointer to an array of four values used as the R, G, B, and A components of the blend constant that are used in blending, depending on the blend factor.floatblendConstants(int index)a pointer to an array of four values used as the R, G, B, and A components of the blend constant that are used in blending, depending on the blend factor.VkPipelineColorBlendStateCreateInfoblendConstants(int index, float value)Sets the specified value at the specified index of theblendConstants()field.VkPipelineColorBlendStateCreateInfoblendConstants(java.nio.FloatBuffer value)Copies the specifiedFloatBufferto theblendConstants()field.static VkPipelineColorBlendStateCreateInfocalloc()Returns a newVkPipelineColorBlendStateCreateInfoinstance allocated withmemCalloc.static VkPipelineColorBlendStateCreateInfo.Buffercalloc(int capacity)Returns a newVkPipelineColorBlendStateCreateInfo.Bufferinstance allocated withmemCalloc.static VkPipelineColorBlendStateCreateInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineColorBlendStateCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineColorBlendStateCreateInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineColorBlendStateCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineColorBlendStateCreateInfocallocStack()Deprecated.static VkPipelineColorBlendStateCreateInfo.BuffercallocStack(int capacity)Deprecated.static VkPipelineColorBlendStateCreateInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPipelineColorBlendStateCreateInfocallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkPipelineColorBlendStateCreateInfocreate()Returns a newVkPipelineColorBlendStateCreateInfoinstance allocated withBufferUtils.static VkPipelineColorBlendStateCreateInfo.Buffercreate(int capacity)Returns a newVkPipelineColorBlendStateCreateInfo.Bufferinstance allocated withBufferUtils.static VkPipelineColorBlendStateCreateInfocreate(long address)Returns a newVkPipelineColorBlendStateCreateInfoinstance for the specified memory address.static VkPipelineColorBlendStateCreateInfo.Buffercreate(long address, int capacity)Create aVkPipelineColorBlendStateCreateInfo.Bufferinstance at the specified memory.static VkPipelineColorBlendStateCreateInfocreateSafe(long address)static VkPipelineColorBlendStateCreateInfo.BuffercreateSafe(long address, int capacity)intflags()a bitmask ofVkPipelineColorBlendStateCreateFlagBitsspecifying additional color blending information.VkPipelineColorBlendStateCreateInfoflags(int value)Sets the specified value to theflags()field.intlogicOp()selects which logical operation to apply.VkPipelineColorBlendStateCreateInfologicOp(int value)Sets the specified value to thelogicOp()field.booleanlogicOpEnable()controls whether to apply Logical Operations.VkPipelineColorBlendStateCreateInfologicOpEnable(boolean value)Sets the specified value to thelogicOpEnable()field.static VkPipelineColorBlendStateCreateInfomalloc()Returns a newVkPipelineColorBlendStateCreateInfoinstance allocated withmemAlloc.static VkPipelineColorBlendStateCreateInfo.Buffermalloc(int capacity)Returns a newVkPipelineColorBlendStateCreateInfo.Bufferinstance allocated withmemAlloc.static VkPipelineColorBlendStateCreateInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineColorBlendStateCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkPipelineColorBlendStateCreateInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineColorBlendStateCreateInfoinstance allocated on the specifiedMemoryStack.static VkPipelineColorBlendStateCreateInfomallocStack()Deprecated.static VkPipelineColorBlendStateCreateInfo.BuffermallocStack(int capacity)Deprecated.static VkPipelineColorBlendStateCreateInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPipelineColorBlendStateCreateInfomallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static intnattachmentCount(long struct)Unsafe version ofattachmentCount().static voidnattachmentCount(long struct, int value)Sets the specified value to theattachmentCountfield of the specifiedstruct.static java.nio.FloatBuffernblendConstants(long struct)Unsafe version ofblendConstants().static floatnblendConstants(long struct, int index)Unsafe version ofblendConstants.static voidnblendConstants(long struct, int index, float value)Unsafe version ofblendConstants.static voidnblendConstants(long struct, java.nio.FloatBuffer value)Unsafe version ofblendConstants.static intnflags(long struct)Unsafe version offlags().static voidnflags(long struct, int value)Unsafe version offlags.static intnlogicOp(long struct)Unsafe version oflogicOp().static voidnlogicOp(long struct, int value)Unsafe version oflogicOp.static intnlogicOpEnable(long struct)Unsafe version oflogicOpEnable().static voidnlogicOpEnable(long struct, int value)Unsafe version oflogicOpEnable.static VkPipelineColorBlendAttachmentState.BuffernpAttachments(long struct)Unsafe version ofpAttachments().static voidnpAttachments(long struct, VkPipelineColorBlendAttachmentState.Buffer value)Unsafe version ofpAttachments.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.VkPipelineColorBlendAttachmentState.BufferpAttachments()a pointer to an array ofVkPipelineColorBlendAttachmentStatestructures defining blend state for each color attachment.VkPipelineColorBlendStateCreateInfopAttachments(VkPipelineColorBlendAttachmentState.Buffer value)Sets the address of the specifiedVkPipelineColorBlendAttachmentState.Bufferto thepAttachments()field.longpNext()NULLor a pointer to a structure extending this structure.VkPipelineColorBlendStateCreateInfopNext(long value)Sets the specified value to thepNext()field.VkPipelineColorBlendStateCreateInfopNext(VkPipelineColorBlendAdvancedStateCreateInfoEXT value)Prepends the specifiedVkPipelineColorBlendAdvancedStateCreateInfoEXTvalue to thepNextchain.VkPipelineColorBlendStateCreateInfopNext(VkPipelineColorWriteCreateInfoEXT value)Prepends the specifiedVkPipelineColorWriteCreateInfoEXTvalue to thepNextchain.VkPipelineColorBlendStateCreateInfoset(int sType, long pNext, int flags, boolean logicOpEnable, int logicOp, VkPipelineColorBlendAttachmentState.Buffer pAttachments, java.nio.FloatBuffer blendConstants)Initializes this struct with the specified values.VkPipelineColorBlendStateCreateInfoset(VkPipelineColorBlendStateCreateInfo src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPipelineColorBlendStateCreateInfosType(int value)Sets the specified value to thesType()field.VkPipelineColorBlendStateCreateInfosType$Default()Sets theSTRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFOvalue to thesType()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
VkPipelineColorBlendStateCreateInfo
public VkPipelineColorBlendStateCreateInfo(java.nio.ByteBuffer container)
Creates aVkPipelineColorBlendStateCreateInfoinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
sType
public int sType()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
flags
public int flags()
a bitmask ofVkPipelineColorBlendStateCreateFlagBitsspecifying additional color blending information.
-
logicOpEnable
public boolean logicOpEnable()
controls whether to apply Logical Operations.
-
logicOp
public int logicOp()
selects which logical operation to apply.
-
attachmentCount
public int attachmentCount()
the number ofVkPipelineColorBlendAttachmentStateelements inpAttachments.
-
pAttachments
@Nullable public VkPipelineColorBlendAttachmentState.Buffer pAttachments()
a pointer to an array ofVkPipelineColorBlendAttachmentStatestructures defining blend state for each color attachment.
-
blendConstants
public java.nio.FloatBuffer blendConstants() public float blendConstants(int index)
a pointer to an array of four values used as the R, G, B, and A components of the blend constant that are used in blending, depending on the blend factor.
-
sType
public VkPipelineColorBlendStateCreateInfo sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPipelineColorBlendStateCreateInfo sType$Default()
Sets theSTRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFOvalue to thesType()field.
-
pNext
public VkPipelineColorBlendStateCreateInfo pNext(long value)
Sets the specified value to thepNext()field.
-
pNext
public VkPipelineColorBlendStateCreateInfo pNext(VkPipelineColorBlendAdvancedStateCreateInfoEXT value)
Prepends the specifiedVkPipelineColorBlendAdvancedStateCreateInfoEXTvalue to thepNextchain.
-
pNext
public VkPipelineColorBlendStateCreateInfo pNext(VkPipelineColorWriteCreateInfoEXT value)
Prepends the specifiedVkPipelineColorWriteCreateInfoEXTvalue to thepNextchain.
-
flags
public VkPipelineColorBlendStateCreateInfo flags(int value)
Sets the specified value to theflags()field.
-
logicOpEnable
public VkPipelineColorBlendStateCreateInfo logicOpEnable(boolean value)
Sets the specified value to thelogicOpEnable()field.
-
logicOp
public VkPipelineColorBlendStateCreateInfo logicOp(int value)
Sets the specified value to thelogicOp()field.
-
pAttachments
public VkPipelineColorBlendStateCreateInfo pAttachments(@Nullable VkPipelineColorBlendAttachmentState.Buffer value)
Sets the address of the specifiedVkPipelineColorBlendAttachmentState.Bufferto thepAttachments()field.
-
blendConstants
public VkPipelineColorBlendStateCreateInfo blendConstants(java.nio.FloatBuffer value)
Copies the specifiedFloatBufferto theblendConstants()field.
-
blendConstants
public VkPipelineColorBlendStateCreateInfo blendConstants(int index, float value)
Sets the specified value at the specified index of theblendConstants()field.
-
set
public VkPipelineColorBlendStateCreateInfo set(int sType, long pNext, int flags, boolean logicOpEnable, int logicOp, @Nullable VkPipelineColorBlendAttachmentState.Buffer pAttachments, java.nio.FloatBuffer blendConstants)
Initializes this struct with the specified values.
-
set
public VkPipelineColorBlendStateCreateInfo set(VkPipelineColorBlendStateCreateInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPipelineColorBlendStateCreateInfo malloc()
Returns a newVkPipelineColorBlendStateCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPipelineColorBlendStateCreateInfo calloc()
Returns a newVkPipelineColorBlendStateCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPipelineColorBlendStateCreateInfo create()
Returns a newVkPipelineColorBlendStateCreateInfoinstance allocated withBufferUtils.
-
create
public static VkPipelineColorBlendStateCreateInfo create(long address)
Returns a newVkPipelineColorBlendStateCreateInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VkPipelineColorBlendStateCreateInfo createSafe(long address)
-
malloc
public static VkPipelineColorBlendStateCreateInfo.Buffer malloc(int capacity)
Returns a newVkPipelineColorBlendStateCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPipelineColorBlendStateCreateInfo.Buffer calloc(int capacity)
Returns a newVkPipelineColorBlendStateCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineColorBlendStateCreateInfo.Buffer create(int capacity)
Returns a newVkPipelineColorBlendStateCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineColorBlendStateCreateInfo.Buffer create(long address, int capacity)
Create aVkPipelineColorBlendStateCreateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPipelineColorBlendStateCreateInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkPipelineColorBlendStateCreateInfo mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPipelineColorBlendStateCreateInfo callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPipelineColorBlendStateCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPipelineColorBlendStateCreateInfo callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPipelineColorBlendStateCreateInfo.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkPipelineColorBlendStateCreateInfo.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPipelineColorBlendStateCreateInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkPipelineColorBlendStateCreateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkPipelineColorBlendStateCreateInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineColorBlendStateCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPipelineColorBlendStateCreateInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineColorBlendStateCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPipelineColorBlendStateCreateInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineColorBlendStateCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPipelineColorBlendStateCreateInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineColorBlendStateCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType().
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext().
-
nflags
public static int nflags(long struct)
Unsafe version offlags().
-
nlogicOpEnable
public static int nlogicOpEnable(long struct)
Unsafe version oflogicOpEnable().
-
nlogicOp
public static int nlogicOp(long struct)
Unsafe version oflogicOp().
-
nattachmentCount
public static int nattachmentCount(long struct)
Unsafe version ofattachmentCount().
-
npAttachments
@Nullable public static VkPipelineColorBlendAttachmentState.Buffer npAttachments(long struct)
Unsafe version ofpAttachments().
-
nblendConstants
public static java.nio.FloatBuffer nblendConstants(long struct)
Unsafe version ofblendConstants().
-
nblendConstants
public static float nblendConstants(long struct, int index)Unsafe version ofblendConstants.
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nflags
public static void nflags(long struct, int value)Unsafe version offlags.
-
nlogicOpEnable
public static void nlogicOpEnable(long struct, int value)Unsafe version oflogicOpEnable.
-
nlogicOp
public static void nlogicOp(long struct, int value)Unsafe version oflogicOp.
-
nattachmentCount
public static void nattachmentCount(long struct, int value)Sets the specified value to theattachmentCountfield of the specifiedstruct.
-
npAttachments
public static void npAttachments(long struct, @Nullable VkPipelineColorBlendAttachmentState.Buffer value)Unsafe version ofpAttachments.
-
nblendConstants
public static void nblendConstants(long struct, java.nio.FloatBuffer value)Unsafe version ofblendConstants.
-
nblendConstants
public static void nblendConstants(long struct, int index, float value)Unsafe version ofblendConstants.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-