Class VkPipelineRenderingCreateInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPipelineRenderingCreateInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkPipelineRenderingCreateInfoKHR
public class VkPipelineRenderingCreateInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying attachment formats.Description
When a pipeline is created without a
VkRenderPass, if this structure is present in thepNextchain ofVkGraphicsPipelineCreateInfo, it specifies the view mask and format of attachments used for rendering. If this structure is not specified, and the pipeline does not include aVkRenderPass,viewMaskandcolorAttachmentCountare 0, anddepthAttachmentFormatandstencilAttachmentFormatareFORMAT_UNDEFINED. If a graphics pipeline is created with a validVkRenderPass, parameters of this structure are ignored.If
depthAttachmentFormat,stencilAttachmentFormat, or any element ofpColorAttachmentFormatsisFORMAT_UNDEFINED, it indicates that the corresponding attachment is unused within the render pass. Valid formats indicate that an attachment can be used - but it is still valid to set the attachment toNULLwhen beginning rendering.Valid Usage
- If any element of
pColorAttachmentFormatsis notFORMAT_UNDEFINED, it must be a format with potential format features that includes eitherFORMAT_FEATURE_COLOR_ATTACHMENT_BITorFORMAT_FEATURE_2_LINEAR_COLOR_ATTACHMENT_BIT_NV - If
depthAttachmentFormatis notFORMAT_UNDEFINED, it must be a format that includes a depth aspect - If
stencilAttachmentFormatis notFORMAT_UNDEFINED, it must be a format that includes a stencil aspect - If
depthAttachmentFormatis notFORMAT_UNDEFINED, it must be a format with potential format features that includeFORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT - If
stencilAttachmentFormatis notFORMAT_UNDEFINED, it must be a format with potential format features that includeFORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT - If
depthAttachmentFormatis notFORMAT_UNDEFINEDandstencilAttachmentFormatis notFORMAT_UNDEFINED,depthAttachmentFormatmust equalstencilAttachmentFormat - If the
multiviewfeature is not enabled,viewMaskmust be 0 - The index of the most significant bit in
viewMaskmust be less thanmaxMultiviewViewCount
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PIPELINE_RENDERING_CREATE_INFO- If
colorAttachmentCountis not 0,pColorAttachmentFormatsmust be a valid pointer to an array ofcolorAttachmentCountvalidVkFormatvalues depthAttachmentFormatmust be a validVkFormatvaluestencilAttachmentFormatmust be a validVkFormatvalue
Layout
struct VkPipelineRenderingCreateInfo { VkStructureTypesType(); void const *pNext(); uint32_tviewMask(); uint32_tcolorAttachmentCount(); VkFormat const *pColorAttachmentFormats(); VkFormatdepthAttachmentFormat(); VkFormatstencilAttachmentFormat(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPipelineRenderingCreateInfo.BufferAn array ofVkPipelineRenderingCreateInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCOLORATTACHMENTCOUNT
DEPTHATTACHMENTFORMAT
PCOLORATTACHMENTFORMATS
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTENCILATTACHMENTFORMAT
STYPE
VIEWMASKThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPipelineRenderingCreateInfo(java.nio.ByteBuffer container)Creates aVkPipelineRenderingCreateInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPipelineRenderingCreateInfocalloc()Returns a newVkPipelineRenderingCreateInfoinstance allocated withmemCalloc.static VkPipelineRenderingCreateInfo.Buffercalloc(int capacity)Returns a newVkPipelineRenderingCreateInfo.Bufferinstance allocated withmemCalloc.static VkPipelineRenderingCreateInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineRenderingCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineRenderingCreateInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineRenderingCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcolorAttachmentCount()the number of entries inpColorAttachmentFormatsstatic VkPipelineRenderingCreateInfocreate()Returns a newVkPipelineRenderingCreateInfoinstance allocated withBufferUtils.static VkPipelineRenderingCreateInfo.Buffercreate(int capacity)Returns a newVkPipelineRenderingCreateInfo.Bufferinstance allocated withBufferUtils.static VkPipelineRenderingCreateInfocreate(long address)Returns a newVkPipelineRenderingCreateInfoinstance for the specified memory address.static VkPipelineRenderingCreateInfo.Buffercreate(long address, int capacity)Create aVkPipelineRenderingCreateInfo.Bufferinstance at the specified memory.static VkPipelineRenderingCreateInfocreateSafe(long address)static VkPipelineRenderingCreateInfo.BuffercreateSafe(long address, int capacity)intdepthAttachmentFormat()aVkFormatvalue defining the format of the depth attachment used in this pipeline.VkPipelineRenderingCreateInfodepthAttachmentFormat(int value)Sets the specified value to thedepthAttachmentFormat()field.static VkPipelineRenderingCreateInfomalloc()Returns a newVkPipelineRenderingCreateInfoinstance allocated withmemAlloc.static VkPipelineRenderingCreateInfo.Buffermalloc(int capacity)Returns a newVkPipelineRenderingCreateInfo.Bufferinstance allocated withmemAlloc.static VkPipelineRenderingCreateInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineRenderingCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkPipelineRenderingCreateInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineRenderingCreateInfoinstance allocated on the specifiedMemoryStack.static intncolorAttachmentCount(long struct)Unsafe version ofcolorAttachmentCount().static voidncolorAttachmentCount(long struct, int value)Sets the specified value to thecolorAttachmentCountfield of the specifiedstruct.static intndepthAttachmentFormat(long struct)Unsafe version ofdepthAttachmentFormat().static voidndepthAttachmentFormat(long struct, int value)Unsafe version ofdepthAttachmentFormat.static java.nio.IntBuffernpColorAttachmentFormats(long struct)Unsafe version ofpColorAttachmentFormats.static voidnpColorAttachmentFormats(long struct, java.nio.IntBuffer value)Unsafe version ofpColorAttachmentFormats.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnstencilAttachmentFormat(long struct)Unsafe version ofstencilAttachmentFormat().static voidnstencilAttachmentFormat(long struct, int value)Unsafe version ofstencilAttachmentFormat.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.static intnviewMask(long struct)Unsafe version ofviewMask().static voidnviewMask(long struct, int value)Unsafe version ofviewMask.java.nio.IntBufferpColorAttachmentFormats()a pointer to an array ofVkFormatvalues defining the format of color attachments used in this pipeline.VkPipelineRenderingCreateInfopColorAttachmentFormats(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto thepColorAttachmentFormats()field.longpNext()NULLor a pointer to a structure extending this structure.VkPipelineRenderingCreateInfopNext(long value)Sets the specified value to thepNext()field.VkPipelineRenderingCreateInfoset(int sType, long pNext, int viewMask, java.nio.IntBuffer pColorAttachmentFormats, int depthAttachmentFormat, int stencilAttachmentFormat)Initializes this struct with the specified values.VkPipelineRenderingCreateInfoset(VkPipelineRenderingCreateInfo src)Copies the specified struct data to this struct.intsizeof()intstencilAttachmentFormat()aVkFormatvalue defining the format of the stencil attachment used in this pipeline.VkPipelineRenderingCreateInfostencilAttachmentFormat(int value)Sets the specified value to thestencilAttachmentFormat()field.intsType()the type of this structure.VkPipelineRenderingCreateInfosType(int value)Sets the specified value to thesType()field.VkPipelineRenderingCreateInfosType$Default()Sets theSTRUCTURE_TYPE_PIPELINE_RENDERING_CREATE_INFOvalue to thesType()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.intviewMask()the viewMask used for rendering.VkPipelineRenderingCreateInfoviewMask(int value)Sets the specified value to theviewMask()field.
-
-
-
Constructor Detail
-
VkPipelineRenderingCreateInfo
public VkPipelineRenderingCreateInfo(java.nio.ByteBuffer container)
Creates aVkPipelineRenderingCreateInfoinstance 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.
-
viewMask
public int viewMask()
the viewMask used for rendering.
-
colorAttachmentCount
public int colorAttachmentCount()
the number of entries inpColorAttachmentFormats
-
pColorAttachmentFormats
@Nullable public java.nio.IntBuffer pColorAttachmentFormats()
a pointer to an array ofVkFormatvalues defining the format of color attachments used in this pipeline.
-
depthAttachmentFormat
public int depthAttachmentFormat()
aVkFormatvalue defining the format of the depth attachment used in this pipeline.
-
stencilAttachmentFormat
public int stencilAttachmentFormat()
aVkFormatvalue defining the format of the stencil attachment used in this pipeline.
-
sType
public VkPipelineRenderingCreateInfo sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPipelineRenderingCreateInfo sType$Default()
Sets theSTRUCTURE_TYPE_PIPELINE_RENDERING_CREATE_INFOvalue to thesType()field.
-
pNext
public VkPipelineRenderingCreateInfo pNext(long value)
Sets the specified value to thepNext()field.
-
viewMask
public VkPipelineRenderingCreateInfo viewMask(int value)
Sets the specified value to theviewMask()field.
-
pColorAttachmentFormats
public VkPipelineRenderingCreateInfo pColorAttachmentFormats(@Nullable java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto thepColorAttachmentFormats()field.
-
depthAttachmentFormat
public VkPipelineRenderingCreateInfo depthAttachmentFormat(int value)
Sets the specified value to thedepthAttachmentFormat()field.
-
stencilAttachmentFormat
public VkPipelineRenderingCreateInfo stencilAttachmentFormat(int value)
Sets the specified value to thestencilAttachmentFormat()field.
-
set
public VkPipelineRenderingCreateInfo set(int sType, long pNext, int viewMask, @Nullable java.nio.IntBuffer pColorAttachmentFormats, int depthAttachmentFormat, int stencilAttachmentFormat)
Initializes this struct with the specified values.
-
set
public VkPipelineRenderingCreateInfo set(VkPipelineRenderingCreateInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPipelineRenderingCreateInfo malloc()
Returns a newVkPipelineRenderingCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPipelineRenderingCreateInfo calloc()
Returns a newVkPipelineRenderingCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPipelineRenderingCreateInfo create()
Returns a newVkPipelineRenderingCreateInfoinstance allocated withBufferUtils.
-
create
public static VkPipelineRenderingCreateInfo create(long address)
Returns a newVkPipelineRenderingCreateInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VkPipelineRenderingCreateInfo createSafe(long address)
-
malloc
public static VkPipelineRenderingCreateInfo.Buffer malloc(int capacity)
Returns a newVkPipelineRenderingCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPipelineRenderingCreateInfo.Buffer calloc(int capacity)
Returns a newVkPipelineRenderingCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineRenderingCreateInfo.Buffer create(int capacity)
Returns a newVkPipelineRenderingCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineRenderingCreateInfo.Buffer create(long address, int capacity)
Create aVkPipelineRenderingCreateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPipelineRenderingCreateInfo.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPipelineRenderingCreateInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineRenderingCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPipelineRenderingCreateInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineRenderingCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPipelineRenderingCreateInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineRenderingCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPipelineRenderingCreateInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineRenderingCreateInfo.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().
-
nviewMask
public static int nviewMask(long struct)
Unsafe version ofviewMask().
-
ncolorAttachmentCount
public static int ncolorAttachmentCount(long struct)
Unsafe version ofcolorAttachmentCount().
-
npColorAttachmentFormats
@Nullable public static java.nio.IntBuffer npColorAttachmentFormats(long struct)
Unsafe version ofpColorAttachmentFormats.
-
ndepthAttachmentFormat
public static int ndepthAttachmentFormat(long struct)
Unsafe version ofdepthAttachmentFormat().
-
nstencilAttachmentFormat
public static int nstencilAttachmentFormat(long struct)
Unsafe version ofstencilAttachmentFormat().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nviewMask
public static void nviewMask(long struct, int value)Unsafe version ofviewMask.
-
ncolorAttachmentCount
public static void ncolorAttachmentCount(long struct, int value)Sets the specified value to thecolorAttachmentCountfield of the specifiedstruct.
-
npColorAttachmentFormats
public static void npColorAttachmentFormats(long struct, @Nullable java.nio.IntBuffer value)Unsafe version ofpColorAttachmentFormats.
-
ndepthAttachmentFormat
public static void ndepthAttachmentFormat(long struct, int value)Unsafe version ofdepthAttachmentFormat.
-
nstencilAttachmentFormat
public static void nstencilAttachmentFormat(long struct, int value)Unsafe version ofstencilAttachmentFormat.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-