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.NativeResource
Structure specifying parameters of a newly created pipeline color blend state.Description
Each element of the
pAttachments
array is aVkPipelineColorBlendAttachmentState
structure specifying per-target blending state for each individual color attachment. If the independent blending feature is not enabled on the device, allVkPipelineColorBlendAttachmentState
elements in thepAttachments
array must be identical.Valid Usage
- 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
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO
pNext
must beNULL
or a pointer to a valid instance ofVkPipelineColorBlendAdvancedStateCreateInfoEXT
flags
must be 0- If
attachmentCount
is not 0,pAttachments
must be a valid pointer to an array ofattachmentCount
validVkPipelineColorBlendAttachmentState
structures
See Also
VkGraphicsPipelineCreateInfo
,VkPipelineColorBlendAttachmentState
Member documentation
sType
– the type of this structure.pNext
–NULL
or 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 ofVkPipelineColorBlendAttachmentState
elements inpAttachments
. This value must equal thecolorAttachmentCount
for 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;
VkPipelineColorBlendAttachmentState
const * pAttachments; float blendConstants[4]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkPipelineColorBlendStateCreateInfo.Buffer
An array ofVkPipelineColorBlendStateCreateInfo
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
ATTACHMENTCOUNT
BLENDCONSTANTS
FLAGS
LOGICOP
LOGICOPENABLE
PATTACHMENTS
PNEXTThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
The struct member offsets.
-
Constructor Summary
Constructors Constructor 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 Description int
attachmentCount()
Returns the value of theattachmentCount
field.java.nio.FloatBuffer
blendConstants()
Returns aFloatBuffer
view of 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.VkPipelineColorBlendStateCreateInfo
blendConstants(java.nio.FloatBuffer value)
Copies the specifiedFloatBuffer
to 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, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineColorBlendStateCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPipelineColorBlendStateCreateInfo
callocStack(org.lwjgl.system.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.static VkPipelineColorBlendStateCreateInfo.Buffer
create(long address, int capacity)
Create aVkPipelineColorBlendStateCreateInfo.Buffer
instance at the specified memory.static VkPipelineColorBlendStateCreateInfo
createSafe(long address)
static VkPipelineColorBlendStateCreateInfo.Buffer
createSafe(long address, int capacity)
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.boolean
logicOpEnable()
Returns the value of thelogicOpEnable
field.VkPipelineColorBlendStateCreateInfo
logicOpEnable(boolean 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, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineColorBlendStateCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
.static VkPipelineColorBlendStateCreateInfo
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineColorBlendStateCreateInfo
instance allocated on the specifiedMemoryStack
.static int
nattachmentCount(long struct)
Unsafe version ofattachmentCount()
.static void
nattachmentCount(long struct, int value)
Sets the specified value to theattachmentCount
field of the specifiedstruct
.static java.nio.FloatBuffer
nblendConstants(long struct)
Unsafe version ofblendConstants()
.static float
nblendConstants(long struct, int index)
Unsafe version ofblendConstants
.static void
nblendConstants(long struct, int index, float value)
Unsafe version ofblendConstants
.static void
nblendConstants(long struct, java.nio.FloatBuffer value)
Unsafe version ofblendConstants
.static int
nflags(long struct)
Unsafe version offlags()
.static void
nflags(long struct, int value)
Unsafe version offlags
.static int
nlogicOp(long struct)
Unsafe version oflogicOp()
.static void
nlogicOp(long struct, int value)
Unsafe version oflogicOp
.static int
nlogicOpEnable(long struct)
Unsafe version oflogicOpEnable()
.static void
nlogicOpEnable(long struct, int value)
Unsafe version oflogicOpEnable
.static VkPipelineColorBlendAttachmentState.Buffer
npAttachments(long struct)
Unsafe version ofpAttachments()
.static void
npAttachments(long struct, VkPipelineColorBlendAttachmentState.Buffer value)
Unsafe version ofpAttachments
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.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, boolean 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()
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)
Callsvalidate(long)
for each struct contained in the specified struct array.
-
-
-
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()
- Specified by:
sizeof
in classorg.lwjgl.system.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 boolean 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
@Nullable 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(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.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, 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 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.
-
createSafe
@Nullable public static VkPipelineColorBlendStateCreateInfo createSafe(long address)
-
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
-
createSafe
@Nullable public static VkPipelineColorBlendStateCreateInfo.Buffer createSafe(long address, int 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(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineColorBlendStateCreateInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkPipelineColorBlendStateCreateInfo callocStack(org.lwjgl.system.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, org.lwjgl.system.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, org.lwjgl.system.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
-
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 theattachmentCount
field 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
-
-