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, NativeResource, Pointer
public class VkPipelineColorBlendStateCreateInfo extends Struct
Khronos Reference Page
Vulkan SpecificationContains information about the blend state as part of graphics pipeline creation.
Valid Usage
sTypemust beSTRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFOpNextmust beNULLflagsmust be 0- If
attachmentCountis not 0,pAttachmentsmust be a pointer to an array ofattachmentCountvalidVkPipelineColorBlendAttachmentStatestructures - 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
Member documentation
sType– the type of this structure. Must be:STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFOpNext– reserved for use by extensionsflags– reserved for future uselogicOpEnable– controls whether to apply logical operationslogicOp– selects which logical operation to apply. One of:attachmentCount– the number ofVkPipelineColorBlendAttachmentStateelements inpAttachmentspAttachments– pointer to array of per target attachment statesblendConstants– 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; const void * pNext; VkPipelineColorBlendStateCreateFlags flags; VkBool32 logicOpEnable; VkLogicOp logicOp; uint32_t attachmentCount; const VkPipelineColorBlendAttachmentState * pAttachments; float[4] blendConstants; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classVkPipelineColorBlendStateCreateInfo.BufferAn array ofVkPipelineColorBlendStateCreateInfostructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and 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 and Description intattachmentCount()Returns the value of theattachmentCountfield.java.nio.FloatBufferblendConstants()Returns aFloatBufferview of theblendConstantsfield.VkPipelineColorBlendStateCreateInfoblendConstants(java.nio.FloatBuffer value)Copies the specifiedFloatBufferto 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.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, MemoryStack stack)Returns a newVkPipelineColorBlendStateCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineColorBlendStateCreateInfocallocStack(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 ornullif the address isNULL.static VkPipelineColorBlendStateCreateInfo.Buffercreate(long address, int capacity)Create aVkPipelineColorBlendStateCreateInfo.Bufferinstance at the specified memory.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.intlogicOpEnable()Returns the value of thelogicOpEnablefield.VkPipelineColorBlendStateCreateInfologicOpEnable(int 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, MemoryStack stack)Returns a newVkPipelineColorBlendStateCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkPipelineColorBlendStateCreateInfomallocStack(MemoryStack stack)Returns a newVkPipelineColorBlendStateCreateInfoinstance allocated on the specifiedMemoryStack.VkPipelineColorBlendStateCreateInfonset(long struct)Unsafe version ofset.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, int 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()Returns thesizeof(struct).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)CallsVkPipelineColorBlendStateCreateInfo.validate(long)for each struct contained in the specified struct array.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
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()
Description copied from class:StructReturns thesizeof(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 int 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
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(int value)
Sets the specified value to thelogicOpEnablefield.
-
logicOp
public VkPipelineColorBlendStateCreateInfo logicOp(int value)
Sets the specified value to thelogicOpfield.
-
pAttachments
public VkPipelineColorBlendStateCreateInfo pAttachments(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, int logicOpEnable, int logicOp, VkPipelineColorBlendAttachmentState.Buffer pAttachments, java.nio.FloatBuffer blendConstants)
Initializes this struct with the specified values.
-
nset
public VkPipelineColorBlendStateCreateInfo nset(long struct)
Unsafe version ofset.
-
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 ornullif the address isNULL.
-
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
-
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(MemoryStack stack)
Returns a newVkPipelineColorBlendStateCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPipelineColorBlendStateCreateInfo callocStack(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, 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, 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
-
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)CallsVkPipelineColorBlendStateCreateInfo.validate(long)for each struct contained in the specified struct array.- Parameters:
array- the struct array to validatecount- the number of structs inarray
-
-