Package org.lwjgl.vulkan
Class VkColorBlendAdvancedEXT
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkColorBlendAdvancedEXT>
org.lwjgl.vulkan.VkColorBlendAdvancedEXT
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkColorBlendAdvancedEXT
extends org.lwjgl.system.Struct<VkColorBlendAdvancedEXT>
implements org.lwjgl.system.NativeResource
Structure specifying the advanced blend operation parameters for an attachment.
Valid Usage
- If the non-premultiplied source color property is not supported,
srcPremultipliedmust beTRUE - If the non-premultiplied destination color property is not supported,
dstPremultipliedmust beTRUE - If the correlated overlap property is not supported,
blendOverlapmust beBLEND_OVERLAP_UNCORRELATED_EXT
Valid Usage (Implicit)
advancedBlendOpmust be a validVkBlendOpvalueblendOverlapmust be a validVkBlendOverlapEXTvalue
See Also
Layout
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
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.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 TypeMethodDescriptionintselects which blend operation is used to calculate the RGB values to write to the color attachment.advancedBlendOp(int value) Sets the specified value to theadvancedBlendOp()field.intaVkBlendOverlapEXTvalue specifying how the source and destination sample’s coverage is correlated.blendOverlap(int value) Sets the specified value to theblendOverlap()field.static VkColorBlendAdvancedEXTcalloc()Returns a newVkColorBlendAdvancedEXTinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkColorBlendAdvancedEXT.Bufferinstance allocated withmemCalloc.calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkColorBlendAdvancedEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkColorBlendAdvancedEXTcalloc(org.lwjgl.system.MemoryStack stack) Returns a newVkColorBlendAdvancedEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.booleanspecifies that 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.clampResults(boolean value) Sets the specified value to theclampResults()field.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) booleanspecifies whether the destination color of the blend operation is treated as premultiplied.dstPremultiplied(boolean value) Sets the specified value to thedstPremultiplied()field.static VkColorBlendAdvancedEXTmalloc()Returns a newVkColorBlendAdvancedEXTinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkColorBlendAdvancedEXT.Bufferinstance allocated withmemAlloc.malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkColorBlendAdvancedEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkColorBlendAdvancedEXTmalloc(org.lwjgl.system.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()booleanspecifies whether the source color of the blend operation is treated as premultiplied.srcPremultiplied(boolean value) Sets the specified value to thesrcPremultiplied()field.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods 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()- Specified by:
sizeofin classorg.lwjgl.system.Struct<VkColorBlendAdvancedEXT>
-
advancedBlendOp
public int advancedBlendOp()selects which blend operation is used to calculate the RGB values to write to the color attachment. -
srcPremultiplied
public boolean srcPremultiplied()specifies whether the source color of the blend operation is treated as premultiplied. -
dstPremultiplied
public boolean dstPremultiplied()specifies whether the destination color of the blend operation is treated as premultiplied. -
blendOverlap
public int blendOverlap()aVkBlendOverlapEXTvalue specifying how the source and destination sample’s coverage is correlated. -
clampResults
public boolean clampResults()specifies that 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. -
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 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
public static VkColorBlendAdvancedEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkColorBlendAdvancedEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static VkColorBlendAdvancedEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack) 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.
-