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
sType
must beSTRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO
pNext
must beNULL
flags
must be 0- If
attachmentCount
is not 0,pAttachments
must be a pointer to an array ofattachmentCount
validVkPipelineColorBlendAttachmentState
structures - If the independent blending feature is not enabled, all elements of
pAttachments
must be identical - If the logic operations feature is not enabled,
logicOpEnable
must beFALSE
- If
logicOpEnable
isTRUE
,logicOp
must be a validVkLogicOp
value
Member documentation
sType
– the type of this structure. Must be:STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO
pNext
– 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 ofVkPipelineColorBlendAttachmentState
elements inpAttachments
pAttachments
– 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 class
VkPipelineColorBlendStateCreateInfo.Buffer
An array ofVkPipelineColorBlendStateCreateInfo
structs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static int
SIZEOF
The 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 aVkPipelineColorBlendStateCreateInfo
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description int
attachmentCount()
Returns the value of theattachmentCount
field.java.nio.FloatBuffer
blendConstants()
Returns aFloatBuffer
view of theblendConstants
field.VkPipelineColorBlendStateCreateInfo
blendConstants(java.nio.FloatBuffer value)
Copies the specifiedFloatBuffer
to theblendConstants
field.float
blendConstants(int index)
Returns the value at the specified index of theblendConstants
field.VkPipelineColorBlendStateCreateInfo
blendConstants(int index, float value)
Sets the specified value at the specified index of theblendConstants
field.static VkPipelineColorBlendStateCreateInfo
calloc()
Returns a newVkPipelineColorBlendStateCreateInfo
instance allocated withmemCalloc
.static VkPipelineColorBlendStateCreateInfo.Buffer
calloc(int capacity)
Returns a newVkPipelineColorBlendStateCreateInfo.Buffer
instance allocated withmemCalloc
.static VkPipelineColorBlendStateCreateInfo
callocStack()
Returns a newVkPipelineColorBlendStateCreateInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPipelineColorBlendStateCreateInfo.Buffer
callocStack(int capacity)
Returns a newVkPipelineColorBlendStateCreateInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPipelineColorBlendStateCreateInfo.Buffer
callocStack(int capacity, MemoryStack stack)
Returns a newVkPipelineColorBlendStateCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPipelineColorBlendStateCreateInfo
callocStack(MemoryStack stack)
Returns a newVkPipelineColorBlendStateCreateInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPipelineColorBlendStateCreateInfo
create()
Returns a newVkPipelineColorBlendStateCreateInfo
instance allocated withBufferUtils
.static VkPipelineColorBlendStateCreateInfo.Buffer
create(int capacity)
Returns a newVkPipelineColorBlendStateCreateInfo.Buffer
instance allocated withBufferUtils
.static VkPipelineColorBlendStateCreateInfo
create(long address)
Returns a newVkPipelineColorBlendStateCreateInfo
instance for the specified memory address ornull
if the address isNULL
.static VkPipelineColorBlendStateCreateInfo.Buffer
create(long address, int capacity)
Create aVkPipelineColorBlendStateCreateInfo.Buffer
instance at the specified memory.int
flags()
Returns the value of theflags
field.VkPipelineColorBlendStateCreateInfo
flags(int value)
Sets the specified value to theflags
field.int
logicOp()
Returns the value of thelogicOp
field.VkPipelineColorBlendStateCreateInfo
logicOp(int value)
Sets the specified value to thelogicOp
field.int
logicOpEnable()
Returns the value of thelogicOpEnable
field.VkPipelineColorBlendStateCreateInfo
logicOpEnable(int value)
Sets the specified value to thelogicOpEnable
field.static VkPipelineColorBlendStateCreateInfo
malloc()
Returns a newVkPipelineColorBlendStateCreateInfo
instance allocated withmemAlloc
.static VkPipelineColorBlendStateCreateInfo.Buffer
malloc(int capacity)
Returns a newVkPipelineColorBlendStateCreateInfo.Buffer
instance allocated withmemAlloc
.static VkPipelineColorBlendStateCreateInfo
mallocStack()
Returns a newVkPipelineColorBlendStateCreateInfo
instance allocated on the thread-localMemoryStack
.static VkPipelineColorBlendStateCreateInfo.Buffer
mallocStack(int capacity)
Returns a newVkPipelineColorBlendStateCreateInfo.Buffer
instance allocated on the thread-localMemoryStack
.static VkPipelineColorBlendStateCreateInfo.Buffer
mallocStack(int capacity, MemoryStack stack)
Returns a newVkPipelineColorBlendStateCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
.static VkPipelineColorBlendStateCreateInfo
mallocStack(MemoryStack stack)
Returns a newVkPipelineColorBlendStateCreateInfo
instance allocated on the specifiedMemoryStack
.VkPipelineColorBlendStateCreateInfo
nset(long struct)
Unsafe version ofset
.VkPipelineColorBlendAttachmentState.Buffer
pAttachments()
Returns aVkPipelineColorBlendAttachmentState.Buffer
view of the struct array pointed to by thepAttachments
field.VkPipelineColorBlendStateCreateInfo
pAttachments(VkPipelineColorBlendAttachmentState.Buffer value)
Sets the address of the specifiedVkPipelineColorBlendAttachmentState.Buffer
to thepAttachments
field.long
pNext()
Returns the value of thepNext
field.VkPipelineColorBlendStateCreateInfo
pNext(long value)
Sets the specified value to thepNext
field.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.VkPipelineColorBlendStateCreateInfo
set(VkPipelineColorBlendStateCreateInfo src)
Copies the specified struct data to this struct.int
sizeof()
Returns thesizeof(struct)
.int
sType()
Returns the value of thesType
field.VkPipelineColorBlendStateCreateInfo
sType(int value)
Sets the specified value to thesType
field.static void
validate(long struct)
Validates pointer members that should not beNULL
.static void
validate(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 aVkPipelineColorBlendStateCreateInfo
instance at the current position of the specifiedByteBuffer
container. 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:Struct
Returns thesizeof(struct)
.
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
flags
public int flags()
Returns the value of theflags
field.
-
logicOpEnable
public int logicOpEnable()
Returns the value of thelogicOpEnable
field.
-
logicOp
public int logicOp()
Returns the value of thelogicOp
field.
-
attachmentCount
public int attachmentCount()
Returns the value of theattachmentCount
field.
-
pAttachments
public VkPipelineColorBlendAttachmentState.Buffer pAttachments()
Returns aVkPipelineColorBlendAttachmentState.Buffer
view of the struct array pointed to by thepAttachments
field.
-
blendConstants
public java.nio.FloatBuffer blendConstants()
Returns aFloatBuffer
view of theblendConstants
field.
-
blendConstants
public float blendConstants(int index)
Returns the value at the specified index of theblendConstants
field.
-
sType
public VkPipelineColorBlendStateCreateInfo sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkPipelineColorBlendStateCreateInfo pNext(long value)
Sets the specified value to thepNext
field.
-
flags
public VkPipelineColorBlendStateCreateInfo flags(int value)
Sets the specified value to theflags
field.
-
logicOpEnable
public VkPipelineColorBlendStateCreateInfo logicOpEnable(int 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(VkPipelineColorBlendAttachmentState.Buffer value)
Sets the address of the specifiedVkPipelineColorBlendAttachmentState.Buffer
to thepAttachments
field.
-
blendConstants
public VkPipelineColorBlendStateCreateInfo blendConstants(java.nio.FloatBuffer value)
Copies the specifiedFloatBuffer
to 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, 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 newVkPipelineColorBlendStateCreateInfo
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkPipelineColorBlendStateCreateInfo calloc()
Returns a newVkPipelineColorBlendStateCreateInfo
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkPipelineColorBlendStateCreateInfo create()
Returns a newVkPipelineColorBlendStateCreateInfo
instance allocated withBufferUtils
.
-
create
public static VkPipelineColorBlendStateCreateInfo create(long address)
Returns a newVkPipelineColorBlendStateCreateInfo
instance for the specified memory address ornull
if the address isNULL
.
-
malloc
public static VkPipelineColorBlendStateCreateInfo.Buffer malloc(int capacity)
Returns a newVkPipelineColorBlendStateCreateInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkPipelineColorBlendStateCreateInfo.Buffer calloc(int capacity)
Returns a newVkPipelineColorBlendStateCreateInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPipelineColorBlendStateCreateInfo.Buffer create(int capacity)
Returns a newVkPipelineColorBlendStateCreateInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPipelineColorBlendStateCreateInfo.Buffer create(long address, int capacity)
Create aVkPipelineColorBlendStateCreateInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
mallocStack
public static VkPipelineColorBlendStateCreateInfo mallocStack()
Returns a newVkPipelineColorBlendStateCreateInfo
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkPipelineColorBlendStateCreateInfo callocStack()
Returns a newVkPipelineColorBlendStateCreateInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkPipelineColorBlendStateCreateInfo mallocStack(MemoryStack stack)
Returns a newVkPipelineColorBlendStateCreateInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkPipelineColorBlendStateCreateInfo callocStack(MemoryStack stack)
Returns a newVkPipelineColorBlendStateCreateInfo
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkPipelineColorBlendStateCreateInfo.Buffer callocStack(int capacity)
Returns a newVkPipelineColorBlendStateCreateInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkPipelineColorBlendStateCreateInfo.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkPipelineColorBlendStateCreateInfo.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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
-
-