Top Description Inners Fields Constructors Methods
org.lwjgl.vulkan

public Class VkColorBlendEquationEXT

extends Struct<VkColorBlendEquationEXT>
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 color blend factors and operations for an attachment.
Valid Usage
Valid Usage (Implicit)
See Also

CmdSetColorBlendEquationEXT

Layout


struct VkColorBlendEquationEXT {
    VkBlendFactor srcColorBlendFactor;
    VkBlendFactor dstColorBlendFactor;
    VkBlendOp colorBlendOp;
    VkBlendFactor srcAlphaBlendFactor;
    VkBlendFactor dstAlphaBlendFactor;
    VkBlendOp alphaBlendOp;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
ALPHABLENDOP

The struct member offsets.

public static final int
COLORBLENDOP

The struct member offsets.

public static final int
DSTALPHABLENDFACTOR

The struct member offsets.

public static final int
DSTCOLORBLENDFACTOR

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
SRCALPHABLENDFACTOR

The struct member offsets.

public static final int
SRCCOLORBLENDFACTOR

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

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

public
VkColorBlendEquationEXT(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public int
alphaBlendOp()

selects which blend operation is use to calculate the alpha values to write to the color attachment.

public VkColorBlendEquationEXT
alphaBlendOp(int value)

Sets the specified value to the alphaBlendOp field.

public static VkColorBlendEquationEXT
calloc()

Returns a new VkColorBlendEquationEXT instance allocated with memCalloc.

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

Returns a new VkColorBlendEquationEXT.Buffer instance allocated with memCalloc.

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

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

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

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

public int
colorBlendOp()

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

public VkColorBlendEquationEXT
colorBlendOp(int value)

Sets the specified value to the colorBlendOp field.

protected VkColorBlendEquationEXT
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 VkColorBlendEquationEXT
create()

Returns a new VkColorBlendEquationEXT instance allocated with BufferUtils.

public static VkColorBlendEquationEXT
create(long address)

Returns a new VkColorBlendEquationEXT instance for the specified memory address.

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

Returns a new VkColorBlendEquationEXT.Buffer instance allocated with BufferUtils.

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

Create a VkColorBlendEquationEXT.Buffer instance at the specified memory.

public static VkColorBlendEquationEXT
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public int
dstAlphaBlendFactor()

selects which blend factor is used to determine the destination factor Da.

public VkColorBlendEquationEXT
dstAlphaBlendFactor(int value)

Sets the specified value to the dstAlphaBlendFactor field.

public int
dstColorBlendFactor()

selects which blend factor is used to determine the destination factors (Dr,Dg,Db).

public VkColorBlendEquationEXT
dstColorBlendFactor(int value)

Sets the specified value to the dstColorBlendFactor field.

public static VkColorBlendEquationEXT
malloc()

Returns a new VkColorBlendEquationEXT instance allocated with memAlloc.

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

Returns a new VkColorBlendEquationEXT.Buffer instance allocated with memAlloc.

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

Returns a new VkColorBlendEquationEXT instance allocated on the specified MemoryStack.

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

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

public static int
nalphaBlendOp(long struct)

Unsafe version of alphaBlendOp.

public static void
nalphaBlendOp(long struct, int value)

Unsafe version of alphaBlendOp.

public static int
ncolorBlendOp(long struct)

Unsafe version of colorBlendOp.

public static void
ncolorBlendOp(long struct, int value)

Unsafe version of colorBlendOp.

public static int
ndstAlphaBlendFactor(long struct)

Unsafe version of dstAlphaBlendFactor.

public static void
ndstAlphaBlendFactor(long struct, int value)

Unsafe version of dstAlphaBlendFactor.

public static int
ndstColorBlendFactor(long struct)

Unsafe version of dstColorBlendFactor.

public static void
ndstColorBlendFactor(long struct, int value)

Unsafe version of dstColorBlendFactor.

public static int
nsrcAlphaBlendFactor(long struct)

Unsafe version of srcAlphaBlendFactor.

public static void
nsrcAlphaBlendFactor(long struct, int value)

Unsafe version of srcAlphaBlendFactor.

public static int
nsrcColorBlendFactor(long struct)

Unsafe version of srcColorBlendFactor.

public static void
nsrcColorBlendFactor(long struct, int value)

Unsafe version of srcColorBlendFactor.

public VkColorBlendEquationEXT
set(int srcColorBlendFactor, int dstColorBlendFactor, int colorBlendOp, int srcAlphaBlendFactor, int dstAlphaBlendFactor, int alphaBlendOp)

Initializes this struct with the specified values.

public VkColorBlendEquationEXT

Returns:

this struct
set
(VkColorBlendEquationEXT
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 int
srcAlphaBlendFactor()

selects which blend factor is used to determine the source factor Sa.

public VkColorBlendEquationEXT
srcAlphaBlendFactor(int value)

Sets the specified value to the srcAlphaBlendFactor field.

public int
srcColorBlendFactor()

selects which blend factor is used to determine the source factors (Sr,Sg,Sb).

public VkColorBlendEquationEXT
srcColorBlendFactor(int value)

Sets the specified value to the srcColorBlendFactor 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

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

ALPHABLENDOPback to summary
public static final int ALPHABLENDOP

The struct member offsets.

COLORBLENDOPback to summary
public static final int COLORBLENDOP

The struct member offsets.

DSTALPHABLENDFACTORback to summary
public static final int DSTALPHABLENDFACTOR

The struct member offsets.

DSTCOLORBLENDFACTORback to summary
public static final int DSTCOLORBLENDFACTOR

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

SRCALPHABLENDFACTORback to summary
public static final int SRCALPHABLENDFACTOR

The struct member offsets.

SRCCOLORBLENDFACTORback to summary
public static final int SRCCOLORBLENDFACTOR

The struct member offsets.

Constructor Detail

VkColorBlendEquationEXTback to summary
protected VkColorBlendEquationEXT(long address, ByteBuffer container)
VkColorBlendEquationEXTback to summary
public VkColorBlendEquationEXT(ByteBuffer container)

Creates a VkColorBlendEquationEXT 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

alphaBlendOpback to summary
public int alphaBlendOp()

selects which blend operation is use to calculate the alpha values to write to the color attachment.

Annotations
@NativeType:VkBlendOp
alphaBlendOpback to summary
public VkColorBlendEquationEXT alphaBlendOp(int value)

Sets the specified value to the alphaBlendOp field.

callocback to summary
public static VkColorBlendEquationEXT calloc()

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

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

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

Parameters
capacity:int

the buffer capacity

callocback to summary
public static VkColorBlendEquationEXT calloc(MemoryStack stack)

Returns a new VkColorBlendEquationEXT 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 VkColorBlendEquationEXT.Buffer calloc(int capacity, MemoryStack stack)

Returns a new VkColorBlendEquationEXT.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

colorBlendOpback to summary
public int colorBlendOp()

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

Annotations
@NativeType:VkBlendOp
colorBlendOpback to summary
public VkColorBlendEquationEXT colorBlendOp(int value)

Sets the specified value to the colorBlendOp field.

createback to summary
protected VkColorBlendEquationEXT 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 VkColorBlendEquationEXT create()

Returns a new VkColorBlendEquationEXT instance allocated with BufferUtils.

createback to summary
public static VkColorBlendEquationEXT create(long address)

Returns a new VkColorBlendEquationEXT instance for the specified memory address.

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

Returns a new VkColorBlendEquationEXT.Buffer instance allocated with BufferUtils.

Parameters
capacity:int

the buffer capacity

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

Create a VkColorBlendEquationEXT.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static VkColorBlendEquationEXT createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

Annotations
@Nullable
dstAlphaBlendFactorback to summary
public int dstAlphaBlendFactor()

selects which blend factor is used to determine the destination factor Da.

Annotations
@NativeType:VkBlendFactor
dstAlphaBlendFactorback to summary
public VkColorBlendEquationEXT dstAlphaBlendFactor(int value)

Sets the specified value to the dstAlphaBlendFactor field.

dstColorBlendFactorback to summary
public int dstColorBlendFactor()

selects which blend factor is used to determine the destination factors (Dr,Dg,Db).

Annotations
@NativeType:VkBlendFactor
dstColorBlendFactorback to summary
public VkColorBlendEquationEXT dstColorBlendFactor(int value)

Sets the specified value to the dstColorBlendFactor field.

mallocback to summary
public static VkColorBlendEquationEXT malloc()

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

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

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

Parameters
capacity:int

the buffer capacity

mallocback to summary
public static VkColorBlendEquationEXT malloc(MemoryStack stack)

Returns a new VkColorBlendEquationEXT instance allocated on the specified MemoryStack.

Parameters
stack:MemoryStack

the stack from which to allocate

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

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

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

nalphaBlendOpback to summary
public static int nalphaBlendOp(long struct)

Unsafe version of alphaBlendOp.

nalphaBlendOpback to summary
public static void nalphaBlendOp(long struct, int value)

Unsafe version of alphaBlendOp.

ncolorBlendOpback to summary
public static int ncolorBlendOp(long struct)

Unsafe version of colorBlendOp.

ncolorBlendOpback to summary
public static void ncolorBlendOp(long struct, int value)

Unsafe version of colorBlendOp.

ndstAlphaBlendFactorback to summary
public static int ndstAlphaBlendFactor(long struct)

Unsafe version of dstAlphaBlendFactor.

ndstAlphaBlendFactorback to summary
public static void ndstAlphaBlendFactor(long struct, int value)

Unsafe version of dstAlphaBlendFactor.

ndstColorBlendFactorback to summary
public static int ndstColorBlendFactor(long struct)

Unsafe version of dstColorBlendFactor.

ndstColorBlendFactorback to summary
public static void ndstColorBlendFactor(long struct, int value)

Unsafe version of dstColorBlendFactor.

nsrcAlphaBlendFactorback to summary
public static int nsrcAlphaBlendFactor(long struct)

Unsafe version of srcAlphaBlendFactor.

nsrcAlphaBlendFactorback to summary
public static void nsrcAlphaBlendFactor(long struct, int value)

Unsafe version of srcAlphaBlendFactor.

nsrcColorBlendFactorback to summary
public static int nsrcColorBlendFactor(long struct)

Unsafe version of srcColorBlendFactor.

nsrcColorBlendFactorback to summary
public static void nsrcColorBlendFactor(long struct, int value)

Unsafe version of srcColorBlendFactor.

setback to summary
public VkColorBlendEquationEXT set(int srcColorBlendFactor, int dstColorBlendFactor, int colorBlendOp, int srcAlphaBlendFactor, int dstAlphaBlendFactor, int alphaBlendOp)

Initializes this struct with the specified values.

setback to summary
public VkColorBlendEquationEXT set(VkColorBlendEquationEXT src)

Copies the specified struct data to this struct.

Parameters
src:VkColorBlendEquationEXT

the source struct

Returns:VkColorBlendEquationEXT

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
srcAlphaBlendFactorback to summary
public int srcAlphaBlendFactor()

selects which blend factor is used to determine the source factor Sa.

Annotations
@NativeType:VkBlendFactor
srcAlphaBlendFactorback to summary
public VkColorBlendEquationEXT srcAlphaBlendFactor(int value)

Sets the specified value to the srcAlphaBlendFactor field.

srcColorBlendFactorback to summary
public int srcColorBlendFactor()

selects which blend factor is used to determine the source factors (Sr,Sg,Sb).

Annotations
@NativeType:VkBlendFactor
srcColorBlendFactorback to summary
public VkColorBlendEquationEXT srcColorBlendFactor(int value)

Sets the specified value to the srcColorBlendFactor field.

org.lwjgl.vulkan back to summary

public Class VkColorBlendEquationEXT.Buffer

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

An array of VkColorBlendEquationEXT structs.

Field Summary

Modifier and TypeField and Description
private static final VkColorBlendEquationEXT

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new VkColorBlendEquationEXT.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 VkColorBlendEquationEXT#alphaBlendOp field.
alphaBlendOp
()

public VkColorBlendEquationEXT.Buffer
alphaBlendOp(int value)

Sets the specified value to the VkColorBlendEquationEXT#alphaBlendOp field.

public int

Returns:

the value of the VkColorBlendEquationEXT#colorBlendOp field.
colorBlendOp
()

public VkColorBlendEquationEXT.Buffer
colorBlendOp(int value)

Sets the specified value to the VkColorBlendEquationEXT#colorBlendOp field.

public int
public VkColorBlendEquationEXT.Buffer
dstAlphaBlendFactor(int value)

Sets the specified value to the VkColorBlendEquationEXT#dstAlphaBlendFactor field.

public int
public VkColorBlendEquationEXT.Buffer
dstColorBlendFactor(int value)

Sets the specified value to the VkColorBlendEquationEXT#dstColorBlendFactor field.

protected VkColorBlendEquationEXT
protected VkColorBlendEquationEXT.Buffer
public int
public VkColorBlendEquationEXT.Buffer
srcAlphaBlendFactor(int value)

Sets the specified value to the VkColorBlendEquationEXT#srcAlphaBlendFactor field.

public int
public VkColorBlendEquationEXT.Buffer
srcColorBlendFactor(int value)

Sets the specified value to the VkColorBlendEquationEXT#srcColorBlendFactor field.

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final VkColorBlendEquationEXT ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new VkColorBlendEquationEXT.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 VkColorBlendEquationEXT#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

alphaBlendOpback to summary
public int alphaBlendOp()
Returns:int

the value of the VkColorBlendEquationEXT#alphaBlendOp field.

Annotations
@NativeType:VkBlendOp
alphaBlendOpback to summary
public VkColorBlendEquationEXT.Buffer alphaBlendOp(int value)

Sets the specified value to the VkColorBlendEquationEXT#alphaBlendOp field.

colorBlendOpback to summary
public int colorBlendOp()
Returns:int

the value of the VkColorBlendEquationEXT#colorBlendOp field.

Annotations
@NativeType:VkBlendOp
colorBlendOpback to summary
public VkColorBlendEquationEXT.Buffer colorBlendOp(int value)

Sets the specified value to the VkColorBlendEquationEXT#colorBlendOp field.

dstAlphaBlendFactorback to summary
public int dstAlphaBlendFactor()
Returns:int

the value of the VkColorBlendEquationEXT#dstAlphaBlendFactor field.

Annotations
@NativeType:VkBlendFactor
dstAlphaBlendFactorback to summary
public VkColorBlendEquationEXT.Buffer dstAlphaBlendFactor(int value)

Sets the specified value to the VkColorBlendEquationEXT#dstAlphaBlendFactor field.

dstColorBlendFactorback to summary
public int dstColorBlendFactor()
Returns:int

the value of the VkColorBlendEquationEXT#dstColorBlendFactor field.

Annotations
@NativeType:VkBlendFactor
dstColorBlendFactorback to summary
public VkColorBlendEquationEXT.Buffer dstColorBlendFactor(int value)

Sets the specified value to the VkColorBlendEquationEXT#dstColorBlendFactor field.

getElementFactoryback to summary
protected VkColorBlendEquationEXT getElementFactory()

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

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

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

Annotations
@Override
srcAlphaBlendFactorback to summary
public int srcAlphaBlendFactor()
Returns:int

the value of the VkColorBlendEquationEXT#srcAlphaBlendFactor field.

Annotations
@NativeType:VkBlendFactor
srcAlphaBlendFactorback to summary
public VkColorBlendEquationEXT.Buffer srcAlphaBlendFactor(int value)

Sets the specified value to the VkColorBlendEquationEXT#srcAlphaBlendFactor field.

srcColorBlendFactorback to summary
public int srcColorBlendFactor()
Returns:int

the value of the VkColorBlendEquationEXT#srcColorBlendFactor field.

Annotations
@NativeType:VkBlendFactor
srcColorBlendFactorback to summary
public VkColorBlendEquationEXT.Buffer srcColorBlendFactor(int value)

Sets the specified value to the VkColorBlendEquationEXT#srcColorBlendFactor field.