Package org.lwjgl.vulkan
Class VkPipelineColorWriteCreateInfoEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPipelineColorWriteCreateInfoEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPipelineColorWriteCreateInfoEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying color write state of a newly created pipeline.Description
When this structure is included in the
pNextchain ofVkPipelineColorBlendStateCreateInfo, it defines per-attachment color write state. If this structure is not included in thepNextchain, it is equivalent to specifying this structure withattachmentCountequal to theattachmentCountmember ofVkPipelineColorBlendStateCreateInfo, andpColorWriteEnablespointing to an array of as manyTRUEvalues.If the colorWriteEnable feature is not enabled on the device, all
VkBool32elements in thepColorWriteEnablesarray must beTRUE.Color Write Enable interacts with the Color Write Mask as follows:
- If
colorWriteEnableisTRUE, writes to the attachment are determined by thecolorWriteMask. - If
colorWriteEnableisFALSE, thecolorWriteMaskis ignored and writes to all components of the attachment are disabled. This is equivalent to specifying acolorWriteMaskof 0.
Valid Usage
- If the colorWriteEnable feature is not enabled, all elements of
pColorWriteEnablesmust beTRUE attachmentCountmust be equal to theattachmentCountmember of theVkPipelineColorBlendStateCreateInfostructure specified during pipeline creation
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PIPELINE_COLOR_WRITE_CREATE_INFO_EXT- If
attachmentCountis not 0,pColorWriteEnablesmust be a valid pointer to an array ofattachmentCountVkBool32values
Layout
struct VkPipelineColorWriteCreateInfoEXT { VkStructureTypesType(); void const *pNext(); uint32_tattachmentCount(); VkBool32 const *pColorWriteEnables(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPipelineColorWriteCreateInfoEXT.BufferAn array ofVkPipelineColorWriteCreateInfoEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intATTACHMENTCOUNT
PCOLORWRITEENABLES
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPipelineColorWriteCreateInfoEXT(java.nio.ByteBuffer container)Creates aVkPipelineColorWriteCreateInfoEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intattachmentCount()the number ofVkBool32elements inpColorWriteEnables.static VkPipelineColorWriteCreateInfoEXTcalloc()Returns a newVkPipelineColorWriteCreateInfoEXTinstance allocated withmemCalloc.static VkPipelineColorWriteCreateInfoEXT.Buffercalloc(int capacity)Returns a newVkPipelineColorWriteCreateInfoEXT.Bufferinstance allocated withmemCalloc.static VkPipelineColorWriteCreateInfoEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineColorWriteCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineColorWriteCreateInfoEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineColorWriteCreateInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineColorWriteCreateInfoEXTcreate()Returns a newVkPipelineColorWriteCreateInfoEXTinstance allocated withBufferUtils.static VkPipelineColorWriteCreateInfoEXT.Buffercreate(int capacity)Returns a newVkPipelineColorWriteCreateInfoEXT.Bufferinstance allocated withBufferUtils.static VkPipelineColorWriteCreateInfoEXTcreate(long address)Returns a newVkPipelineColorWriteCreateInfoEXTinstance for the specified memory address.static VkPipelineColorWriteCreateInfoEXT.Buffercreate(long address, int capacity)Create aVkPipelineColorWriteCreateInfoEXT.Bufferinstance at the specified memory.static VkPipelineColorWriteCreateInfoEXTcreateSafe(long address)static VkPipelineColorWriteCreateInfoEXT.BuffercreateSafe(long address, int capacity)static VkPipelineColorWriteCreateInfoEXTmalloc()Returns a newVkPipelineColorWriteCreateInfoEXTinstance allocated withmemAlloc.static VkPipelineColorWriteCreateInfoEXT.Buffermalloc(int capacity)Returns a newVkPipelineColorWriteCreateInfoEXT.Bufferinstance allocated withmemAlloc.static VkPipelineColorWriteCreateInfoEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineColorWriteCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkPipelineColorWriteCreateInfoEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineColorWriteCreateInfoEXTinstance allocated on the specifiedMemoryStack.static intnattachmentCount(long struct)Unsafe version ofattachmentCount().static voidnattachmentCount(long struct, int value)Sets the specified value to theattachmentCountfield of the specifiedstruct.static java.nio.IntBuffernpColorWriteEnables(long struct)Unsafe version ofpColorWriteEnables.static voidnpColorWriteEnables(long struct, java.nio.IntBuffer value)Unsafe version ofpColorWriteEnables.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.java.nio.IntBufferpColorWriteEnables()a pointer to an array of per target attachment boolean values specifying whether color writes are enabled for the given attachment.VkPipelineColorWriteCreateInfoEXTpColorWriteEnables(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto thepColorWriteEnables()field.longpNext()NULLor a pointer to a structure extending this structure.VkPipelineColorWriteCreateInfoEXTpNext(long value)Sets the specified value to thepNext()field.VkPipelineColorWriteCreateInfoEXTset(int sType, long pNext, java.nio.IntBuffer pColorWriteEnables)Initializes this struct with the specified values.VkPipelineColorWriteCreateInfoEXTset(VkPipelineColorWriteCreateInfoEXT src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPipelineColorWriteCreateInfoEXTsType(int value)Sets the specified value to thesType()field.VkPipelineColorWriteCreateInfoEXTsType$Default()Sets theSTRUCTURE_TYPE_PIPELINE_COLOR_WRITE_CREATE_INFO_EXTvalue to thesType()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
VkPipelineColorWriteCreateInfoEXT
public VkPipelineColorWriteCreateInfoEXT(java.nio.ByteBuffer container)
Creates aVkPipelineColorWriteCreateInfoEXTinstance 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()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
attachmentCount
public int attachmentCount()
the number ofVkBool32elements inpColorWriteEnables.
-
pColorWriteEnables
@Nullable public java.nio.IntBuffer pColorWriteEnables()
a pointer to an array of per target attachment boolean values specifying whether color writes are enabled for the given attachment.
-
sType
public VkPipelineColorWriteCreateInfoEXT sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPipelineColorWriteCreateInfoEXT sType$Default()
Sets theSTRUCTURE_TYPE_PIPELINE_COLOR_WRITE_CREATE_INFO_EXTvalue to thesType()field.
-
pNext
public VkPipelineColorWriteCreateInfoEXT pNext(long value)
Sets the specified value to thepNext()field.
-
pColorWriteEnables
public VkPipelineColorWriteCreateInfoEXT pColorWriteEnables(@Nullable java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto thepColorWriteEnables()field.
-
set
public VkPipelineColorWriteCreateInfoEXT set(int sType, long pNext, @Nullable java.nio.IntBuffer pColorWriteEnables)
Initializes this struct with the specified values.
-
set
public VkPipelineColorWriteCreateInfoEXT set(VkPipelineColorWriteCreateInfoEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPipelineColorWriteCreateInfoEXT malloc()
Returns a newVkPipelineColorWriteCreateInfoEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPipelineColorWriteCreateInfoEXT calloc()
Returns a newVkPipelineColorWriteCreateInfoEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPipelineColorWriteCreateInfoEXT create()
Returns a newVkPipelineColorWriteCreateInfoEXTinstance allocated withBufferUtils.
-
create
public static VkPipelineColorWriteCreateInfoEXT create(long address)
Returns a newVkPipelineColorWriteCreateInfoEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkPipelineColorWriteCreateInfoEXT createSafe(long address)
-
malloc
public static VkPipelineColorWriteCreateInfoEXT.Buffer malloc(int capacity)
Returns a newVkPipelineColorWriteCreateInfoEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPipelineColorWriteCreateInfoEXT.Buffer calloc(int capacity)
Returns a newVkPipelineColorWriteCreateInfoEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineColorWriteCreateInfoEXT.Buffer create(int capacity)
Returns a newVkPipelineColorWriteCreateInfoEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineColorWriteCreateInfoEXT.Buffer create(long address, int capacity)
Create aVkPipelineColorWriteCreateInfoEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPipelineColorWriteCreateInfoEXT.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPipelineColorWriteCreateInfoEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineColorWriteCreateInfoEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPipelineColorWriteCreateInfoEXT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineColorWriteCreateInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPipelineColorWriteCreateInfoEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineColorWriteCreateInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPipelineColorWriteCreateInfoEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineColorWriteCreateInfoEXT.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().
-
nattachmentCount
public static int nattachmentCount(long struct)
Unsafe version ofattachmentCount().
-
npColorWriteEnables
@Nullable public static java.nio.IntBuffer npColorWriteEnables(long struct)
Unsafe version ofpColorWriteEnables.
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nattachmentCount
public static void nattachmentCount(long struct, int value)Sets the specified value to theattachmentCountfield of the specifiedstruct.
-
npColorWriteEnables
public static void npColorWriteEnables(long struct, @Nullable java.nio.IntBuffer value)Unsafe version ofpColorWriteEnables.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-