Package org.lwjgl.vulkan
Class VkColorBlendAdvancedEXT
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class VkColorBlendAdvancedEXT
extends Struct<VkColorBlendAdvancedEXT>
implements NativeResource
struct VkColorBlendAdvancedEXT {
VkBlendOp advancedBlendOp;
VkBool32 srcPremultiplied;
VkBool32 dstPremultiplied;
VkBlendOverlapEXT blendOverlap;
VkBool32 clampResults;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct member offsets.static final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionVkColorBlendAdvancedEXT
(ByteBuffer container) Creates aVkColorBlendAdvancedEXT
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
advancedBlendOp
(int value) Sets the specified value to theadvancedBlendOp
field.int
blendOverlap
(int value) Sets the specified value to theblendOverlap
field.static VkColorBlendAdvancedEXT
calloc()
Returns a newVkColorBlendAdvancedEXT
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newVkColorBlendAdvancedEXT.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newVkColorBlendAdvancedEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkColorBlendAdvancedEXT
calloc
(MemoryStack stack) Returns a newVkColorBlendAdvancedEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.boolean
clampResults
(boolean value) Sets the specified value to theclampResults
field.static VkColorBlendAdvancedEXT
create()
Returns a newVkColorBlendAdvancedEXT
instance allocated withBufferUtils
.create
(int capacity) Returns a newVkColorBlendAdvancedEXT.Buffer
instance allocated withBufferUtils
.static VkColorBlendAdvancedEXT
create
(long address) Returns a newVkColorBlendAdvancedEXT
instance for the specified memory address.create
(long address, int capacity) Create aVkColorBlendAdvancedEXT.Buffer
instance at the specified memory.static @Nullable VkColorBlendAdvancedEXT
createSafe
(long address) static @Nullable VkColorBlendAdvancedEXT.Buffer
createSafe
(long address, int capacity) boolean
dstPremultiplied
(boolean value) Sets the specified value to thedstPremultiplied
field.static VkColorBlendAdvancedEXT
malloc()
Returns a newVkColorBlendAdvancedEXT
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newVkColorBlendAdvancedEXT.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newVkColorBlendAdvancedEXT.Buffer
instance allocated on the specifiedMemoryStack
.static VkColorBlendAdvancedEXT
malloc
(MemoryStack stack) Returns a newVkColorBlendAdvancedEXT
instance allocated on the specifiedMemoryStack
.static int
nadvancedBlendOp
(long struct) Unsafe version ofadvancedBlendOp()
.static void
nadvancedBlendOp
(long struct, int value) Unsafe version ofadvancedBlendOp
.static int
nblendOverlap
(long struct) Unsafe version ofblendOverlap()
.static void
nblendOverlap
(long struct, int value) Unsafe version ofblendOverlap
.static int
nclampResults
(long struct) Unsafe version ofclampResults()
.static void
nclampResults
(long struct, int value) Unsafe version ofclampResults
.static int
ndstPremultiplied
(long struct) Unsafe version ofdstPremultiplied()
.static void
ndstPremultiplied
(long struct, int value) Unsafe version ofdstPremultiplied
.static int
nsrcPremultiplied
(long struct) Unsafe version ofsrcPremultiplied()
.static void
nsrcPremultiplied
(long struct, int value) Unsafe version ofsrcPremultiplied
.set
(int advancedBlendOp, boolean srcPremultiplied, boolean dstPremultiplied, int blendOverlap, boolean clampResults) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.boolean
srcPremultiplied
(boolean value) Sets the specified value to thesrcPremultiplied
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
ADVANCEDBLENDOP
public static final int ADVANCEDBLENDOPThe struct member offsets. -
SRCPREMULTIPLIED
public static final int SRCPREMULTIPLIEDThe struct member offsets. -
DSTPREMULTIPLIED
public static final int DSTPREMULTIPLIEDThe struct member offsets. -
BLENDOVERLAP
public static final int BLENDOVERLAPThe struct member offsets. -
CLAMPRESULTS
public static final int CLAMPRESULTSThe struct member offsets.
-
-
Constructor Details
-
VkColorBlendAdvancedEXT
Creates aVkColorBlendAdvancedEXT
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<VkColorBlendAdvancedEXT>
-
advancedBlendOp
public int advancedBlendOp()- Returns:
- the value of the
advancedBlendOp
field.
-
srcPremultiplied
public boolean srcPremultiplied()- Returns:
- the value of the
srcPremultiplied
field.
-
dstPremultiplied
public boolean dstPremultiplied()- Returns:
- the value of the
dstPremultiplied
field.
-
blendOverlap
public int blendOverlap()- Returns:
- the value of the
blendOverlap
field.
-
clampResults
public boolean clampResults()- Returns:
- the value of the
clampResults
field.
-
advancedBlendOp
Sets the specified value to theadvancedBlendOp
field. -
srcPremultiplied
Sets the specified value to thesrcPremultiplied
field. -
dstPremultiplied
Sets the specified value to thedstPremultiplied
field. -
blendOverlap
Sets the specified value to theblendOverlap
field. -
clampResults
Sets the specified value to theclampResults
field. -
set
public VkColorBlendAdvancedEXT set(int advancedBlendOp, boolean srcPremultiplied, boolean dstPremultiplied, int blendOverlap, boolean clampResults) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newVkColorBlendAdvancedEXT
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkColorBlendAdvancedEXT
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkColorBlendAdvancedEXT
instance allocated withBufferUtils
. -
create
Returns a newVkColorBlendAdvancedEXT
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkColorBlendAdvancedEXT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkColorBlendAdvancedEXT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkColorBlendAdvancedEXT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkColorBlendAdvancedEXT.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newVkColorBlendAdvancedEXT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkColorBlendAdvancedEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkColorBlendAdvancedEXT.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkColorBlendAdvancedEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nadvancedBlendOp
public static int nadvancedBlendOp(long struct) Unsafe version ofadvancedBlendOp()
. -
nsrcPremultiplied
public static int nsrcPremultiplied(long struct) Unsafe version ofsrcPremultiplied()
. -
ndstPremultiplied
public static int ndstPremultiplied(long struct) Unsafe version ofdstPremultiplied()
. -
nblendOverlap
public static int nblendOverlap(long struct) Unsafe version ofblendOverlap()
. -
nclampResults
public static int nclampResults(long struct) Unsafe version ofclampResults()
. -
nadvancedBlendOp
public static void nadvancedBlendOp(long struct, int value) Unsafe version ofadvancedBlendOp
. -
nsrcPremultiplied
public static void nsrcPremultiplied(long struct, int value) Unsafe version ofsrcPremultiplied
. -
ndstPremultiplied
public static void ndstPremultiplied(long struct, int value) Unsafe version ofdstPremultiplied
. -
nblendOverlap
public static void nblendOverlap(long struct, int value) Unsafe version ofblendOverlap
. -
nclampResults
public static void nclampResults(long struct, int value) Unsafe version ofclampResults
.
-