Top Description Inners Fields Constructors Methods
org.lwjgl.vulkan

public Class VkColorBlendAdvancedEXT

extends Struct<VkColorBlendAdvancedEXT>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Structure specifying the advanced blend operation parameters for an attachment.
Valid Usage
Valid Usage (Implicit)
See Also

CmdSetColorBlendAdvancedEXT

Layout


struct VkColorBlendAdvancedEXT {
    VkBlendOp advancedBlendOp;
    VkBool32 srcPremultiplied;
    VkBool32 dstPremultiplied;
    VkBlendOverlapEXT blendOverlap;
    VkBool32 clampResults;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ADVANCEDBLENDOP

The struct member offsets.

public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
BLENDOVERLAP

The struct member offsets.

public static final int
CLAMPRESULTS

The struct member offsets.

public static final int
DSTPREMULTIPLIED

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
SRCPREMULTIPLIED

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
VkColorBlendAdvancedEXT(long address, ByteBuffer container)

public
VkColorBlendAdvancedEXT(ByteBuffer container)

Creates a VkColorBlendAdvancedEXT instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public int
advancedBlendOp()

selects which blend operation is used to calculate the RGB values to write to the color attachment.

public VkColorBlendAdvancedEXT
advancedBlendOp(int value)

Sets the specified value to the advancedBlendOp field.

public int
blendOverlap()

a VkBlendOverlapEXT value specifying how the source and destination sample’s coverage is correlated.

public VkColorBlendAdvancedEXT
blendOverlap(int value)

Sets the specified value to the blendOverlap field.

public static VkColorBlendAdvancedEXT
calloc()

Returns a new VkColorBlendAdvancedEXT instance allocated with memCalloc.

public static VkColorBlendAdvancedEXT.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new VkColorBlendAdvancedEXT.Buffer instance allocated with memCalloc.

public static VkColorBlendAdvancedEXT
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkColorBlendAdvancedEXT instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static VkColorBlendAdvancedEXT.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkColorBlendAdvancedEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public boolean
clampResults()

specifies the results must be clamped to the [0,1] range before writing to the attachment, which is useful when the attachment format is not normalized fixed-point.

public VkColorBlendAdvancedEXT
clampResults(boolean value)

Sets the specified value to the clampResults field.

protected VkColorBlendAdvancedEXT
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static VkColorBlendAdvancedEXT
create()

Returns a new VkColorBlendAdvancedEXT instance allocated with BufferUtils.

public static VkColorBlendAdvancedEXT
create(long address)

Returns a new VkColorBlendAdvancedEXT instance for the specified memory address.

public static VkColorBlendAdvancedEXT.Buffer
create(int
the buffer capacity
capacity
)

Returns a new VkColorBlendAdvancedEXT.Buffer instance allocated with BufferUtils.

public static VkColorBlendAdvancedEXT.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a VkColorBlendAdvancedEXT.Buffer instance at the specified memory.

public static VkColorBlendAdvancedEXT
createSafe(long address)

Like create, but returns null if address is NULL.

public static VkColorBlendAdvancedEXT.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public boolean
dstPremultiplied()

specifies whether the destination color of the blend operation is treated as premultiplied.

public VkColorBlendAdvancedEXT
dstPremultiplied(boolean value)

Sets the specified value to the dstPremultiplied field.

public static VkColorBlendAdvancedEXT
malloc()

Returns a new VkColorBlendAdvancedEXT instance allocated with memAlloc.

public static VkColorBlendAdvancedEXT.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new VkColorBlendAdvancedEXT.Buffer instance allocated with memAlloc.

public static VkColorBlendAdvancedEXT
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkColorBlendAdvancedEXT instance allocated on the specified MemoryStack.

public static VkColorBlendAdvancedEXT.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkColorBlendAdvancedEXT.Buffer instance allocated on the specified MemoryStack.

public static int
nadvancedBlendOp(long struct)

Unsafe version of advancedBlendOp.

public static void
nadvancedBlendOp(long struct, int value)

Unsafe version of advancedBlendOp.

public static int
nblendOverlap(long struct)

Unsafe version of blendOverlap.

public static void
nblendOverlap(long struct, int value)

Unsafe version of blendOverlap.

public static int
nclampResults(long struct)

Unsafe version of clampResults.

public static void
nclampResults(long struct, int value)

Unsafe version of clampResults.

public static int
ndstPremultiplied(long struct)

Unsafe version of dstPremultiplied.

public static void
ndstPremultiplied(long struct, int value)

Unsafe version of dstPremultiplied.

public static int
nsrcPremultiplied(long struct)

Unsafe version of srcPremultiplied.

public static void
nsrcPremultiplied(long struct, int value)

Unsafe version of srcPremultiplied.

public VkColorBlendAdvancedEXT
set(int advancedBlendOp, boolean srcPremultiplied, boolean dstPremultiplied, int blendOverlap, boolean clampResults)

Initializes this struct with the specified values.

public VkColorBlendAdvancedEXT

Returns:

this struct
set
(VkColorBlendAdvancedEXT
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public boolean
srcPremultiplied()

specifies whether the source color of the blend operation is treated as premultiplied.

public VkColorBlendAdvancedEXT
srcPremultiplied(boolean value)

Sets the specified value to the srcPremultiplied field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ADVANCEDBLENDOPback to summary
public static final int ADVANCEDBLENDOP

The struct member offsets.

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

BLENDOVERLAPback to summary
public static final int BLENDOVERLAP

The struct member offsets.

CLAMPRESULTSback to summary
public static final int CLAMPRESULTS

The struct member offsets.

DSTPREMULTIPLIEDback to summary
public static final int DSTPREMULTIPLIED

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

SRCPREMULTIPLIEDback to summary
public static final int SRCPREMULTIPLIED

The struct member offsets.

Constructor Detail

VkColorBlendAdvancedEXTback to summary
protected VkColorBlendAdvancedEXT(long address, ByteBuffer container)
VkColorBlendAdvancedEXTback to summary
public VkColorBlendAdvancedEXT(ByteBuffer container)

Creates a VkColorBlendAdvancedEXT instance at the current position of the specified ByteBuffer 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

advancedBlendOpback to summary
public int advancedBlendOp()

selects which blend operation is used to calculate the RGB values to write to the color attachment.

Annotations
@NativeType:VkBlendOp
advancedBlendOpback to summary
public VkColorBlendAdvancedEXT advancedBlendOp(int value)

Sets the specified value to the advancedBlendOp field.

blendOverlapback to summary
public int blendOverlap()

a VkBlendOverlapEXT value specifying how the source and destination sample’s coverage is correlated.

Annotations
@NativeType:VkBlendOverlapEXT
blendOverlapback to summary
public VkColorBlendAdvancedEXT blendOverlap(int value)

Sets the specified value to the blendOverlap field.

callocback to summary
public static VkColorBlendAdvancedEXT calloc()

Returns a new VkColorBlendAdvancedEXT instance allocated with memCalloc. The instance must be explicitly freed.

callocback to summary
public static VkColorBlendAdvancedEXT.Buffer calloc(int capacity)

Returns a new VkColorBlendAdvancedEXT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

callocback to summary
public static VkColorBlendAdvancedEXT calloc(MemoryStack stack)

Returns a new VkColorBlendAdvancedEXT instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
stack:MemoryStack

the stack from which to allocate

callocback to summary
public static VkColorBlendAdvancedEXT.Buffer calloc(int capacity, MemoryStack stack)

Returns a new VkColorBlendAdvancedEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

clampResultsback to summary
public boolean clampResults()

specifies the results must be clamped to the [0,1] range before writing to the attachment, which is useful when the attachment format is not normalized fixed-point.

Annotations
@NativeType:VkBool32
clampResultsback to summary
public VkColorBlendAdvancedEXT clampResults(boolean value)

Sets the specified value to the clampResults field.

createback to summary
protected VkColorBlendAdvancedEXT create(long address, ByteBuffer container)

Implements abstract org.lwjgl.system.Struct.create.

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static VkColorBlendAdvancedEXT create()

Returns a new VkColorBlendAdvancedEXT instance allocated with BufferUtils.

createback to summary
public static VkColorBlendAdvancedEXT create(long address)

Returns a new VkColorBlendAdvancedEXT instance for the specified memory address.

createback to summary
public static VkColorBlendAdvancedEXT.Buffer create(int capacity)

Returns a new VkColorBlendAdvancedEXT.Buffer instance allocated with BufferUtils.

Parameters
capacity:int

the buffer capacity

createback to summary
public static VkColorBlendAdvancedEXT.Buffer create(long address, int capacity)

Create a VkColorBlendAdvancedEXT.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static VkColorBlendAdvancedEXT createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static VkColorBlendAdvancedEXT.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
dstPremultipliedback to summary
public boolean dstPremultiplied()

specifies whether the destination color of the blend operation is treated as premultiplied.

Annotations
@NativeType:VkBool32
dstPremultipliedback to summary
public VkColorBlendAdvancedEXT dstPremultiplied(boolean value)

Sets the specified value to the dstPremultiplied field.

mallocback to summary
public static VkColorBlendAdvancedEXT malloc()

Returns a new VkColorBlendAdvancedEXT instance allocated with memAlloc. The instance must be explicitly freed.

mallocback to summary
public static VkColorBlendAdvancedEXT.Buffer malloc(int capacity)

Returns a new VkColorBlendAdvancedEXT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

mallocback to summary
public static VkColorBlendAdvancedEXT malloc(MemoryStack stack)

Returns a new VkColorBlendAdvancedEXT instance allocated on the specified MemoryStack.

Parameters
stack:MemoryStack

the stack from which to allocate

mallocback to summary
public static VkColorBlendAdvancedEXT.Buffer malloc(int capacity, MemoryStack stack)

Returns a new VkColorBlendAdvancedEXT.Buffer instance allocated on the specified MemoryStack.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

nadvancedBlendOpback to summary
public static int nadvancedBlendOp(long struct)

Unsafe version of advancedBlendOp.

nadvancedBlendOpback to summary
public static void nadvancedBlendOp(long struct, int value)

Unsafe version of advancedBlendOp.

nblendOverlapback to summary
public static int nblendOverlap(long struct)

Unsafe version of blendOverlap.

nblendOverlapback to summary
public static void nblendOverlap(long struct, int value)

Unsafe version of blendOverlap.

nclampResultsback to summary
public static int nclampResults(long struct)

Unsafe version of clampResults.

nclampResultsback to summary
public static void nclampResults(long struct, int value)

Unsafe version of clampResults.

ndstPremultipliedback to summary
public static int ndstPremultiplied(long struct)

Unsafe version of dstPremultiplied.

ndstPremultipliedback to summary
public static void ndstPremultiplied(long struct, int value)

Unsafe version of dstPremultiplied.

nsrcPremultipliedback to summary
public static int nsrcPremultiplied(long struct)

Unsafe version of srcPremultiplied.

nsrcPremultipliedback to summary
public static void nsrcPremultiplied(long struct, int value)

Unsafe version of srcPremultiplied.

setback to summary
public VkColorBlendAdvancedEXT set(int advancedBlendOp, boolean srcPremultiplied, boolean dstPremultiplied, int blendOverlap, boolean clampResults)

Initializes this struct with the specified values.

setback to summary
public VkColorBlendAdvancedEXT set(VkColorBlendAdvancedEXT src)

Copies the specified struct data to this struct.

Parameters
src:VkColorBlendAdvancedEXT

the source struct

Returns:VkColorBlendAdvancedEXT

this struct

sizeofback to summary
public int sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
srcPremultipliedback to summary
public boolean srcPremultiplied()

specifies whether the source color of the blend operation is treated as premultiplied.

Annotations
@NativeType:VkBool32
srcPremultipliedback to summary
public VkColorBlendAdvancedEXT srcPremultiplied(boolean value)

Sets the specified value to the srcPremultiplied field.

org.lwjgl.vulkan back to summary

public Class VkColorBlendAdvancedEXT.Buffer

extends StructBuffer<VkColorBlendAdvancedEXT, VkColorBlendAdvancedEXT.Buffer>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable

An array of VkColorBlendAdvancedEXT structs.

Field Summary

Modifier and TypeField and Description
private static final VkColorBlendAdvancedEXT

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new VkColorBlendAdvancedEXT.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the value of the VkColorBlendAdvancedEXT#advancedBlendOp field.
advancedBlendOp
()

public VkColorBlendAdvancedEXT.Buffer
advancedBlendOp(int value)

Sets the specified value to the VkColorBlendAdvancedEXT#advancedBlendOp field.

public int

Returns:

the value of the VkColorBlendAdvancedEXT#blendOverlap field.
blendOverlap
()

public VkColorBlendAdvancedEXT.Buffer
blendOverlap(int value)

Sets the specified value to the VkColorBlendAdvancedEXT#blendOverlap field.

public boolean

Returns:

the value of the VkColorBlendAdvancedEXT#clampResults field.
clampResults
()

public VkColorBlendAdvancedEXT.Buffer
clampResults(boolean value)

Sets the specified value to the VkColorBlendAdvancedEXT#clampResults field.

public boolean
public VkColorBlendAdvancedEXT.Buffer
dstPremultiplied(boolean value)

Sets the specified value to the VkColorBlendAdvancedEXT#dstPremultiplied field.

protected VkColorBlendAdvancedEXT
protected VkColorBlendAdvancedEXT.Buffer
public boolean
public VkColorBlendAdvancedEXT.Buffer
srcPremultiplied(boolean value)

Sets the specified value to the VkColorBlendAdvancedEXT#srcPremultiplied field.

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final VkColorBlendAdvancedEXT ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new VkColorBlendAdvancedEXT.Buffer instance backed by the specified container.

Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by VkColorBlendAdvancedEXT#SIZEOF, and its mark will be undefined.

The created buffer instance holds a strong reference to the container object.

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

advancedBlendOpback to summary
public int advancedBlendOp()
Returns:int

the value of the VkColorBlendAdvancedEXT#advancedBlendOp field.

Annotations
@NativeType:VkBlendOp
advancedBlendOpback to summary
public VkColorBlendAdvancedEXT.Buffer advancedBlendOp(int value)

Sets the specified value to the VkColorBlendAdvancedEXT#advancedBlendOp field.

blendOverlapback to summary
public int blendOverlap()
Returns:int

the value of the VkColorBlendAdvancedEXT#blendOverlap field.

Annotations
@NativeType:VkBlendOverlapEXT
blendOverlapback to summary
public VkColorBlendAdvancedEXT.Buffer blendOverlap(int value)

Sets the specified value to the VkColorBlendAdvancedEXT#blendOverlap field.

clampResultsback to summary
public boolean clampResults()
Returns:boolean

the value of the VkColorBlendAdvancedEXT#clampResults field.

Annotations
@NativeType:VkBool32
clampResultsback to summary
public VkColorBlendAdvancedEXT.Buffer clampResults(boolean value)

Sets the specified value to the VkColorBlendAdvancedEXT#clampResults field.

dstPremultipliedback to summary
public boolean dstPremultiplied()
Returns:boolean

the value of the VkColorBlendAdvancedEXT#dstPremultiplied field.

Annotations
@NativeType:VkBool32
dstPremultipliedback to summary
public VkColorBlendAdvancedEXT.Buffer dstPremultiplied(boolean value)

Sets the specified value to the VkColorBlendAdvancedEXT#dstPremultiplied field.

getElementFactoryback to summary
protected VkColorBlendAdvancedEXT getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
selfback to summary
protected VkColorBlendAdvancedEXT.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override
srcPremultipliedback to summary
public boolean srcPremultiplied()
Returns:boolean

the value of the VkColorBlendAdvancedEXT#srcPremultiplied field.

Annotations
@NativeType:VkBool32
srcPremultipliedback to summary
public VkColorBlendAdvancedEXT.Buffer srcPremultiplied(boolean value)

Sets the specified value to the VkColorBlendAdvancedEXT#srcPremultiplied field.