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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct member offsets.static final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe 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 aVkColorBlendAdvancedEXTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintadvancedBlendOp(int value) Sets the specified value to theadvancedBlendOpfield.intblendOverlap(int value) Sets the specified value to theblendOverlapfield.static VkColorBlendAdvancedEXTcalloc()Returns a newVkColorBlendAdvancedEXTinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkColorBlendAdvancedEXT.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkColorBlendAdvancedEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkColorBlendAdvancedEXTcalloc(MemoryStack stack) Returns a newVkColorBlendAdvancedEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.booleanclampResults(boolean value) Sets the specified value to theclampResultsfield.static VkColorBlendAdvancedEXTcreate()Returns a newVkColorBlendAdvancedEXTinstance allocated withBufferUtils.create(int capacity) Returns a newVkColorBlendAdvancedEXT.Bufferinstance allocated withBufferUtils.static VkColorBlendAdvancedEXTcreate(long address) Returns a newVkColorBlendAdvancedEXTinstance for the specified memory address.create(long address, int capacity) Create aVkColorBlendAdvancedEXT.Bufferinstance at the specified memory.static @Nullable VkColorBlendAdvancedEXTcreateSafe(long address) static @Nullable VkColorBlendAdvancedEXT.BuffercreateSafe(long address, int capacity) booleandstPremultiplied(boolean value) Sets the specified value to thedstPremultipliedfield.static VkColorBlendAdvancedEXTmalloc()Returns a newVkColorBlendAdvancedEXTinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkColorBlendAdvancedEXT.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkColorBlendAdvancedEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkColorBlendAdvancedEXTmalloc(MemoryStack stack) Returns a newVkColorBlendAdvancedEXTinstance allocated on the specifiedMemoryStack.static intnadvancedBlendOp(long struct) Unsafe version ofadvancedBlendOp().static voidnadvancedBlendOp(long struct, int value) Unsafe version ofadvancedBlendOp.static intnblendOverlap(long struct) Unsafe version ofblendOverlap().static voidnblendOverlap(long struct, int value) Unsafe version ofblendOverlap.static intnclampResults(long struct) Unsafe version ofclampResults().static voidnclampResults(long struct, int value) Unsafe version ofclampResults.static intndstPremultiplied(long struct) Unsafe version ofdstPremultiplied().static voidndstPremultiplied(long struct, int value) Unsafe version ofdstPremultiplied.static intnsrcPremultiplied(long struct) Unsafe version ofsrcPremultiplied().static voidnsrcPremultiplied(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.intsizeof()Returnssizeof(struct).booleansrcPremultiplied(boolean value) Sets the specified value to thesrcPremultipliedfield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 aVkColorBlendAdvancedEXTinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<VkColorBlendAdvancedEXT>
-
advancedBlendOp
public int advancedBlendOp()- Returns:
- the value of the
advancedBlendOpfield.
-
srcPremultiplied
public boolean srcPremultiplied()- Returns:
- the value of the
srcPremultipliedfield.
-
dstPremultiplied
public boolean dstPremultiplied()- Returns:
- the value of the
dstPremultipliedfield.
-
blendOverlap
public int blendOverlap()- Returns:
- the value of the
blendOverlapfield.
-
clampResults
public boolean clampResults()- Returns:
- the value of the
clampResultsfield.
-
advancedBlendOp
Sets the specified value to theadvancedBlendOpfield. -
srcPremultiplied
Sets the specified value to thesrcPremultipliedfield. -
dstPremultiplied
Sets the specified value to thedstPremultipliedfield. -
blendOverlap
Sets the specified value to theblendOverlapfield. -
clampResults
Sets the specified value to theclampResultsfield. -
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 newVkColorBlendAdvancedEXTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkColorBlendAdvancedEXTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkColorBlendAdvancedEXTinstance allocated withBufferUtils. -
create
Returns a newVkColorBlendAdvancedEXTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkColorBlendAdvancedEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkColorBlendAdvancedEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkColorBlendAdvancedEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkColorBlendAdvancedEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkColorBlendAdvancedEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkColorBlendAdvancedEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkColorBlendAdvancedEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkColorBlendAdvancedEXT.Bufferinstance allocated on the specifiedMemoryStackand 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.
-