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.Description
Each element of the
pAttachmentsarray is aVkPipelineColorBlendAttachmentStatestructure specifying per-target blending state for each individual color attachment. If the independent blending feature is not enabled on the device, allVkPipelineColorBlendAttachmentStateelements in thepAttachmentsarray must be identical.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
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFOpNextmust beNULLor a pointer to a valid instance ofVkPipelineColorBlendAdvancedStateCreateInfoEXTflagsmust be 0- If
attachmentCountis not 0,pAttachmentsmust be a valid pointer to an array ofattachmentCountvalidVkPipelineColorBlendAttachmentStatestructures
See Also
VkGraphicsPipelineCreateInfo,VkPipelineColorBlendAttachmentStateMember documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.flags– reserved for future use.logicOpEnable– controls whether to apply Logical Operations.logicOp– selects which logical operation to apply.attachmentCount– the number ofVkPipelineColorBlendAttachmentStateelements inpAttachments. This value must equal thecolorAttachmentCountfor the subpass in which this pipeline is used.pAttachments– a pointer to array of per target attachment states.blendConstants[4]– 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.
Layout
struct VkPipelineColorBlendStateCreateInfo { VkStructureType sType; void const * pNext; VkPipelineColorBlendStateCreateFlags flags; VkBool32 logicOpEnable; VkLogicOp logicOp; uint32_t attachmentCount;VkPipelineColorBlendAttachmentStateconst * pAttachments; float blendConstants[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 Modifier and Type Method Description intattachmentCount()Returns the value of theattachmentCountfield.java.nio.FloatBufferblendConstants()Returns aFloatBufferview of theblendConstantsfield.floatblendConstants(int index)Returns the value at the specified index of theblendConstantsfield.VkPipelineColorBlendStateCreateInfoblendConstants(int index, float value)Sets the specified value at the specified index of theblendConstantsfield.VkPipelineColorBlendStateCreateInfoblendConstants(java.nio.FloatBuffer value)Copies the specifiedFloatBufferto theblendConstantsfield.static VkPipelineColorBlendStateCreateInfocalloc()Returns a newVkPipelineColorBlendStateCreateInfoinstance allocated withmemCalloc.static VkPipelineColorBlendStateCreateInfo.Buffercalloc(int capacity)Returns a newVkPipelineColorBlendStateCreateInfo.Bufferinstance allocated withmemCalloc.static VkPipelineColorBlendStateCreateInfocallocStack()Returns a newVkPipelineColorBlendStateCreateInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPipelineColorBlendStateCreateInfo.BuffercallocStack(int capacity)Returns a newVkPipelineColorBlendStateCreateInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPipelineColorBlendStateCreateInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineColorBlendStateCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineColorBlendStateCreateInfocallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineColorBlendStateCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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()Returns the value of theflagsfield.VkPipelineColorBlendStateCreateInfoflags(int value)Sets the specified value to theflagsfield.intlogicOp()Returns the value of thelogicOpfield.VkPipelineColorBlendStateCreateInfologicOp(int value)Sets the specified value to thelogicOpfield.booleanlogicOpEnable()Returns the value of thelogicOpEnablefield.VkPipelineColorBlendStateCreateInfologicOpEnable(boolean value)Sets the specified value to thelogicOpEnablefield.static VkPipelineColorBlendStateCreateInfomalloc()Returns a newVkPipelineColorBlendStateCreateInfoinstance allocated withmemAlloc.static VkPipelineColorBlendStateCreateInfo.Buffermalloc(int capacity)Returns a newVkPipelineColorBlendStateCreateInfo.Bufferinstance allocated withmemAlloc.static VkPipelineColorBlendStateCreateInfomallocStack()Returns a newVkPipelineColorBlendStateCreateInfoinstance allocated on the thread-localMemoryStack.static VkPipelineColorBlendStateCreateInfo.BuffermallocStack(int capacity)Returns a newVkPipelineColorBlendStateCreateInfo.Bufferinstance allocated on the thread-localMemoryStack.static VkPipelineColorBlendStateCreateInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineColorBlendStateCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkPipelineColorBlendStateCreateInfomallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineColorBlendStateCreateInfoinstance allocated on the specifiedMemoryStack.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()Returns aVkPipelineColorBlendAttachmentState.Bufferview of the struct array pointed to by thepAttachmentsfield.VkPipelineColorBlendStateCreateInfopAttachments(VkPipelineColorBlendAttachmentState.Buffer value)Sets the address of the specifiedVkPipelineColorBlendAttachmentState.Bufferto thepAttachmentsfield.longpNext()Returns the value of thepNextfield.VkPipelineColorBlendStateCreateInfopNext(long value)Sets the specified value to thepNextfield.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()Returns the value of thesTypefield.VkPipelineColorBlendStateCreateInfosType(int value)Sets the specified value to thesTypefield.static voidvalidate(long struct)Validates pointer members that should not beNULL.static voidvalidate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.
-
-
-
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()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
flags
public int flags()
Returns the value of theflagsfield.
-
logicOpEnable
public boolean logicOpEnable()
Returns the value of thelogicOpEnablefield.
-
logicOp
public int logicOp()
Returns the value of thelogicOpfield.
-
attachmentCount
public int attachmentCount()
Returns the value of theattachmentCountfield.
-
pAttachments
@Nullable public VkPipelineColorBlendAttachmentState.Buffer pAttachments()
Returns aVkPipelineColorBlendAttachmentState.Bufferview of the struct array pointed to by thepAttachmentsfield.
-
blendConstants
public java.nio.FloatBuffer blendConstants()
Returns aFloatBufferview of theblendConstantsfield.
-
blendConstants
public float blendConstants(int index)
Returns the value at the specified index of theblendConstantsfield.
-
sType
public VkPipelineColorBlendStateCreateInfo sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkPipelineColorBlendStateCreateInfo pNext(long value)
Sets the specified value to thepNextfield.
-
flags
public VkPipelineColorBlendStateCreateInfo flags(int value)
Sets the specified value to theflagsfield.
-
logicOpEnable
public VkPipelineColorBlendStateCreateInfo logicOpEnable(boolean value)
Sets the specified value to thelogicOpEnablefield.
-
logicOp
public VkPipelineColorBlendStateCreateInfo logicOp(int value)
Sets the specified value to thelogicOpfield.
-
pAttachments
public VkPipelineColorBlendStateCreateInfo pAttachments(@Nullable VkPipelineColorBlendAttachmentState.Buffer value)
Sets the address of the specifiedVkPipelineColorBlendAttachmentState.Bufferto thepAttachmentsfield.
-
blendConstants
public VkPipelineColorBlendStateCreateInfo blendConstants(java.nio.FloatBuffer value)
Copies the specifiedFloatBufferto theblendConstantsfield.
-
blendConstants
public VkPipelineColorBlendStateCreateInfo blendConstants(int index, float value)
Sets the specified value at the specified index of theblendConstantsfield.
-
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
public static VkPipelineColorBlendStateCreateInfo mallocStack()
Returns a newVkPipelineColorBlendStateCreateInfoinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkPipelineColorBlendStateCreateInfo callocStack()
Returns a newVkPipelineColorBlendStateCreateInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkPipelineColorBlendStateCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineColorBlendStateCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPipelineColorBlendStateCreateInfo callocStack(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
-
mallocStack
public static VkPipelineColorBlendStateCreateInfo.Buffer mallocStack(int capacity)
Returns a newVkPipelineColorBlendStateCreateInfo.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkPipelineColorBlendStateCreateInfo.Buffer callocStack(int capacity)
Returns a newVkPipelineColorBlendStateCreateInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkPipelineColorBlendStateCreateInfo.Buffer mallocStack(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
-
callocStack
public static VkPipelineColorBlendStateCreateInfo.Buffer callocStack(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
-
validate
public static void validate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.- Parameters:
array- the struct array to validatecount- the number of structs inarray
-
-