Package org.lwjgl.vulkan
Class VkPipelineColorBlendAdvancedStateCreateInfoEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPipelineColorBlendAdvancedStateCreateInfoEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPipelineColorBlendAdvancedStateCreateInfoEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying parameters that affect advanced blend operations.Description
If this structure is not present,
srcPremultipliedanddstPremultipliedare both considered to beTRUE, andblendOverlapis considered to beBLEND_OVERLAP_UNCORRELATED_EXT.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)
sTypemust beSTRUCTURE_TYPE_PIPELINE_COLOR_BLEND_ADVANCED_STATE_CREATE_INFO_EXTblendOverlapmust be a validVkBlendOverlapEXTvalue
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.srcPremultiplied– specifies whether the source color of the blend operation is treated as premultiplied.dstPremultiplied– specifies whether the destination color of the blend operation is treated as premultiplied.blendOverlap– aVkBlendOverlapEXTvalue specifying how the source and destination sample’s coverage is correlated.
Layout
struct VkPipelineColorBlendAdvancedStateCreateInfoEXT { VkStructureType sType; void const * pNext; VkBool32 srcPremultiplied; VkBool32 dstPremultiplied; VkBlendOverlapEXT blendOverlap; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPipelineColorBlendAdvancedStateCreateInfoEXT.BufferAn array ofVkPipelineColorBlendAdvancedStateCreateInfoEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intBLENDOVERLAP
DSTPREMULTIPLIED
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSRCPREMULTIPLIED
STYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPipelineColorBlendAdvancedStateCreateInfoEXT(java.nio.ByteBuffer container)Creates aVkPipelineColorBlendAdvancedStateCreateInfoEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intblendOverlap()Returns the value of theblendOverlapfield.VkPipelineColorBlendAdvancedStateCreateInfoEXTblendOverlap(int value)Sets the specified value to theblendOverlapfield.static VkPipelineColorBlendAdvancedStateCreateInfoEXTcalloc()Returns a newVkPipelineColorBlendAdvancedStateCreateInfoEXTinstance allocated withmemCalloc.static VkPipelineColorBlendAdvancedStateCreateInfoEXT.Buffercalloc(int capacity)Returns a newVkPipelineColorBlendAdvancedStateCreateInfoEXT.Bufferinstance allocated withmemCalloc.static VkPipelineColorBlendAdvancedStateCreateInfoEXTcallocStack()Returns a newVkPipelineColorBlendAdvancedStateCreateInfoEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPipelineColorBlendAdvancedStateCreateInfoEXT.BuffercallocStack(int capacity)Returns a newVkPipelineColorBlendAdvancedStateCreateInfoEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPipelineColorBlendAdvancedStateCreateInfoEXT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineColorBlendAdvancedStateCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineColorBlendAdvancedStateCreateInfoEXTcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineColorBlendAdvancedStateCreateInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineColorBlendAdvancedStateCreateInfoEXTcreate()Returns a newVkPipelineColorBlendAdvancedStateCreateInfoEXTinstance allocated withBufferUtils.static VkPipelineColorBlendAdvancedStateCreateInfoEXT.Buffercreate(int capacity)Returns a newVkPipelineColorBlendAdvancedStateCreateInfoEXT.Bufferinstance allocated withBufferUtils.static VkPipelineColorBlendAdvancedStateCreateInfoEXTcreate(long address)Returns a newVkPipelineColorBlendAdvancedStateCreateInfoEXTinstance for the specified memory address.static VkPipelineColorBlendAdvancedStateCreateInfoEXT.Buffercreate(long address, int capacity)Create aVkPipelineColorBlendAdvancedStateCreateInfoEXT.Bufferinstance at the specified memory.static VkPipelineColorBlendAdvancedStateCreateInfoEXTcreateSafe(long address)static VkPipelineColorBlendAdvancedStateCreateInfoEXT.BuffercreateSafe(long address, int capacity)booleandstPremultiplied()Returns the value of thedstPremultipliedfield.VkPipelineColorBlendAdvancedStateCreateInfoEXTdstPremultiplied(boolean value)Sets the specified value to thedstPremultipliedfield.static VkPipelineColorBlendAdvancedStateCreateInfoEXTmalloc()Returns a newVkPipelineColorBlendAdvancedStateCreateInfoEXTinstance allocated withmemAlloc.static VkPipelineColorBlendAdvancedStateCreateInfoEXT.Buffermalloc(int capacity)Returns a newVkPipelineColorBlendAdvancedStateCreateInfoEXT.Bufferinstance allocated withmemAlloc.static VkPipelineColorBlendAdvancedStateCreateInfoEXTmallocStack()Returns a newVkPipelineColorBlendAdvancedStateCreateInfoEXTinstance allocated on the thread-localMemoryStack.static VkPipelineColorBlendAdvancedStateCreateInfoEXT.BuffermallocStack(int capacity)Returns a newVkPipelineColorBlendAdvancedStateCreateInfoEXT.Bufferinstance allocated on the thread-localMemoryStack.static VkPipelineColorBlendAdvancedStateCreateInfoEXT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineColorBlendAdvancedStateCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkPipelineColorBlendAdvancedStateCreateInfoEXTmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineColorBlendAdvancedStateCreateInfoEXTinstance allocated on the specifiedMemoryStack.static intnblendOverlap(long struct)Unsafe version ofblendOverlap().static voidnblendOverlap(long struct, int value)Unsafe version ofblendOverlap.static intndstPremultiplied(long struct)Unsafe version ofdstPremultiplied().static voidndstPremultiplied(long struct, int value)Unsafe version ofdstPremultiplied.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsrcPremultiplied(long struct)Unsafe version ofsrcPremultiplied().static voidnsrcPremultiplied(long struct, int value)Unsafe version ofsrcPremultiplied.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()Returns the value of thepNextfield.VkPipelineColorBlendAdvancedStateCreateInfoEXTpNext(long value)Sets the specified value to thepNextfield.VkPipelineColorBlendAdvancedStateCreateInfoEXTset(int sType, long pNext, boolean srcPremultiplied, boolean dstPremultiplied, int blendOverlap)Initializes this struct with the specified values.VkPipelineColorBlendAdvancedStateCreateInfoEXTset(VkPipelineColorBlendAdvancedStateCreateInfoEXT src)Copies the specified struct data to this struct.intsizeof()booleansrcPremultiplied()Returns the value of thesrcPremultipliedfield.VkPipelineColorBlendAdvancedStateCreateInfoEXTsrcPremultiplied(boolean value)Sets the specified value to thesrcPremultipliedfield.intsType()Returns the value of thesTypefield.VkPipelineColorBlendAdvancedStateCreateInfoEXTsType(int value)Sets the specified value to thesTypefield.
-
-
-
Constructor Detail
-
VkPipelineColorBlendAdvancedStateCreateInfoEXT
public VkPipelineColorBlendAdvancedStateCreateInfoEXT(java.nio.ByteBuffer container)
Creates aVkPipelineColorBlendAdvancedStateCreateInfoEXTinstance 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
srcPremultiplied
public boolean srcPremultiplied()
Returns the value of thesrcPremultipliedfield.
-
dstPremultiplied
public boolean dstPremultiplied()
Returns the value of thedstPremultipliedfield.
-
blendOverlap
public int blendOverlap()
Returns the value of theblendOverlapfield.
-
sType
public VkPipelineColorBlendAdvancedStateCreateInfoEXT sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkPipelineColorBlendAdvancedStateCreateInfoEXT pNext(long value)
Sets the specified value to thepNextfield.
-
srcPremultiplied
public VkPipelineColorBlendAdvancedStateCreateInfoEXT srcPremultiplied(boolean value)
Sets the specified value to thesrcPremultipliedfield.
-
dstPremultiplied
public VkPipelineColorBlendAdvancedStateCreateInfoEXT dstPremultiplied(boolean value)
Sets the specified value to thedstPremultipliedfield.
-
blendOverlap
public VkPipelineColorBlendAdvancedStateCreateInfoEXT blendOverlap(int value)
Sets the specified value to theblendOverlapfield.
-
set
public VkPipelineColorBlendAdvancedStateCreateInfoEXT set(int sType, long pNext, boolean srcPremultiplied, boolean dstPremultiplied, int blendOverlap)
Initializes this struct with the specified values.
-
set
public VkPipelineColorBlendAdvancedStateCreateInfoEXT set(VkPipelineColorBlendAdvancedStateCreateInfoEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPipelineColorBlendAdvancedStateCreateInfoEXT malloc()
Returns a newVkPipelineColorBlendAdvancedStateCreateInfoEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPipelineColorBlendAdvancedStateCreateInfoEXT calloc()
Returns a newVkPipelineColorBlendAdvancedStateCreateInfoEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPipelineColorBlendAdvancedStateCreateInfoEXT create()
Returns a newVkPipelineColorBlendAdvancedStateCreateInfoEXTinstance allocated withBufferUtils.
-
create
public static VkPipelineColorBlendAdvancedStateCreateInfoEXT create(long address)
Returns a newVkPipelineColorBlendAdvancedStateCreateInfoEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkPipelineColorBlendAdvancedStateCreateInfoEXT createSafe(long address)
-
malloc
public static VkPipelineColorBlendAdvancedStateCreateInfoEXT.Buffer malloc(int capacity)
Returns a newVkPipelineColorBlendAdvancedStateCreateInfoEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPipelineColorBlendAdvancedStateCreateInfoEXT.Buffer calloc(int capacity)
Returns a newVkPipelineColorBlendAdvancedStateCreateInfoEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineColorBlendAdvancedStateCreateInfoEXT.Buffer create(int capacity)
Returns a newVkPipelineColorBlendAdvancedStateCreateInfoEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineColorBlendAdvancedStateCreateInfoEXT.Buffer create(long address, int capacity)
Create aVkPipelineColorBlendAdvancedStateCreateInfoEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPipelineColorBlendAdvancedStateCreateInfoEXT.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPipelineColorBlendAdvancedStateCreateInfoEXT mallocStack()
Returns a newVkPipelineColorBlendAdvancedStateCreateInfoEXTinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkPipelineColorBlendAdvancedStateCreateInfoEXT callocStack()
Returns a newVkPipelineColorBlendAdvancedStateCreateInfoEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkPipelineColorBlendAdvancedStateCreateInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineColorBlendAdvancedStateCreateInfoEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPipelineColorBlendAdvancedStateCreateInfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineColorBlendAdvancedStateCreateInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkPipelineColorBlendAdvancedStateCreateInfoEXT.Buffer mallocStack(int capacity)
Returns a newVkPipelineColorBlendAdvancedStateCreateInfoEXT.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkPipelineColorBlendAdvancedStateCreateInfoEXT.Buffer callocStack(int capacity)
Returns a newVkPipelineColorBlendAdvancedStateCreateInfoEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkPipelineColorBlendAdvancedStateCreateInfoEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineColorBlendAdvancedStateCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkPipelineColorBlendAdvancedStateCreateInfoEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineColorBlendAdvancedStateCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType().
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext().
-
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().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
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.
-
-