Class VkCommandBufferInheritanceRenderingInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkCommandBufferInheritanceRenderingInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkCommandBufferInheritanceRenderingInfoKHR
public class VkCommandBufferInheritanceRenderingInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying command buffer inheritance info for dynamic render pass instances.Description
If the
pNextchain ofVkCommandBufferInheritanceInfoincludes aVkCommandBufferInheritanceRenderingInfostructure, then that structure controls parameters of dynamic render pass instances that theVkCommandBuffercan be executed within. IfVkCommandBufferInheritanceInfo::renderPassis notNULL_HANDLE, orCOMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BITis not specified inVkCommandBufferBeginInfo::flags, parameters of this structure are ignored.If
colorAttachmentCountis 0 and thevariableMultisampleRatefeature is enabled,rasterizationSamplesis ignored.If
depthAttachmentFormat,stencilAttachmentFormat, or any element ofpColorAttachmentFormatsisFORMAT_UNDEFINED, it indicates that the corresponding attachment is unused within the render pass.Valid Usage
- If
colorAttachmentCountis not 0,rasterizationSamplesmust be a validVkSampleCountFlagBitsvalue - If the
variableMultisampleRatefeature is not enabled,rasterizationSamplesmust be a validVkSampleCountFlagBitsvalue - If any element of
pColorAttachmentFormatsis notFORMAT_UNDEFINED, it must be a format with potential format features that includeFORMAT_FEATURE_COLOR_ATTACHMENT_BIT - If
depthAttachmentFormatis notFORMAT_UNDEFINED, it must be a format that includes a depth aspect - If
depthAttachmentFormatis notFORMAT_UNDEFINED, it must be a format with potential format features that includeFORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT - When rendering to a Linear Color attachment, if any element of
pColorAttachmentFormatsis notFORMAT_UNDEFINED, it must be a format with potential format features that includeFORMAT_FEATURE_2_LINEAR_COLOR_ATTACHMENT_BIT_NV - If
stencilAttachmentFormatis notFORMAT_UNDEFINED, it must be a format that includes a stencil aspect - 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_COMMAND_BUFFER_INHERITANCE_RENDERING_INFOflagsmust be a valid combination ofVkRenderingFlagBitsvalues- If
colorAttachmentCountis not 0,pColorAttachmentFormatsmust be a valid pointer to an array ofcolorAttachmentCountvalidVkFormatvalues depthAttachmentFormatmust be a validVkFormatvaluestencilAttachmentFormatmust be a validVkFormatvalue- If
rasterizationSamplesis not 0,rasterizationSamplesmust be a validVkSampleCountFlagBitsvalue
Layout
struct VkCommandBufferInheritanceRenderingInfo { VkStructureTypesType(); void const *pNext(); VkRenderingFlagsflags(); uint32_tviewMask(); uint32_tcolorAttachmentCount(); VkFormat const *pColorAttachmentFormats(); VkFormatdepthAttachmentFormat(); VkFormatstencilAttachmentFormat(); VkSampleCountFlagBitsrasterizationSamples(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkCommandBufferInheritanceRenderingInfo.BufferAn array ofVkCommandBufferInheritanceRenderingInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCOLORATTACHMENTCOUNT
DEPTHATTACHMENTFORMAT
FLAGS
PCOLORATTACHMENTFORMATS
PNEXT
RASTERIZATIONSAMPLESThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTENCILATTACHMENTFORMAT
STYPE
VIEWMASKThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkCommandBufferInheritanceRenderingInfo(java.nio.ByteBuffer container)Creates aVkCommandBufferInheritanceRenderingInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkCommandBufferInheritanceRenderingInfocalloc()Returns a newVkCommandBufferInheritanceRenderingInfoinstance allocated withmemCalloc.static VkCommandBufferInheritanceRenderingInfo.Buffercalloc(int capacity)Returns a newVkCommandBufferInheritanceRenderingInfo.Bufferinstance allocated withmemCalloc.static VkCommandBufferInheritanceRenderingInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkCommandBufferInheritanceRenderingInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkCommandBufferInheritanceRenderingInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkCommandBufferInheritanceRenderingInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcolorAttachmentCount()the number of color attachments specified in the render pass instance.static VkCommandBufferInheritanceRenderingInfocreate()Returns a newVkCommandBufferInheritanceRenderingInfoinstance allocated withBufferUtils.static VkCommandBufferInheritanceRenderingInfo.Buffercreate(int capacity)Returns a newVkCommandBufferInheritanceRenderingInfo.Bufferinstance allocated withBufferUtils.static VkCommandBufferInheritanceRenderingInfocreate(long address)Returns a newVkCommandBufferInheritanceRenderingInfoinstance for the specified memory address.static VkCommandBufferInheritanceRenderingInfo.Buffercreate(long address, int capacity)Create aVkCommandBufferInheritanceRenderingInfo.Bufferinstance at the specified memory.static VkCommandBufferInheritanceRenderingInfocreateSafe(long address)static VkCommandBufferInheritanceRenderingInfo.BuffercreateSafe(long address, int capacity)intdepthAttachmentFormat()aVkFormatvalue defining the format of the depth attachment.VkCommandBufferInheritanceRenderingInfodepthAttachmentFormat(int value)Sets the specified value to thedepthAttachmentFormat()field.intflags()a bitmask ofVkRenderingFlagBitsused by the render pass instance.VkCommandBufferInheritanceRenderingInfoflags(int value)Sets the specified value to theflags()field.static VkCommandBufferInheritanceRenderingInfomalloc()Returns a newVkCommandBufferInheritanceRenderingInfoinstance allocated withmemAlloc.static VkCommandBufferInheritanceRenderingInfo.Buffermalloc(int capacity)Returns a newVkCommandBufferInheritanceRenderingInfo.Bufferinstance allocated withmemAlloc.static VkCommandBufferInheritanceRenderingInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkCommandBufferInheritanceRenderingInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkCommandBufferInheritanceRenderingInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkCommandBufferInheritanceRenderingInfoinstance 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 intnflags(long struct)Unsafe version offlags().static voidnflags(long struct, int value)Unsafe version offlags.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 intnrasterizationSamples(long struct)Unsafe version ofrasterizationSamples().static voidnrasterizationSamples(long struct, int value)Unsafe version ofrasterizationSamples.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.VkCommandBufferInheritanceRenderingInfopColorAttachmentFormats(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto thepColorAttachmentFormats()field.longpNext()NULLor a pointer to a structure extending this structureVkCommandBufferInheritanceRenderingInfopNext(long value)Sets the specified value to thepNext()field.intrasterizationSamples()aVkSampleCountFlagBitsspecifying the number of samples used in rasterization.VkCommandBufferInheritanceRenderingInforasterizationSamples(int value)Sets the specified value to therasterizationSamples()field.VkCommandBufferInheritanceRenderingInfoset(int sType, long pNext, int flags, int viewMask, java.nio.IntBuffer pColorAttachmentFormats, int depthAttachmentFormat, int stencilAttachmentFormat, int rasterizationSamples)Initializes this struct with the specified values.VkCommandBufferInheritanceRenderingInfoset(VkCommandBufferInheritanceRenderingInfo src)Copies the specified struct data to this struct.intsizeof()intstencilAttachmentFormat()aVkFormatvalue defining the format of the stencil attachment.VkCommandBufferInheritanceRenderingInfostencilAttachmentFormat(int value)Sets the specified value to thestencilAttachmentFormat()field.intsType()the type of this structureVkCommandBufferInheritanceRenderingInfosType(int value)Sets the specified value to thesType()field.VkCommandBufferInheritanceRenderingInfosType$Default()Sets theSTRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_RENDERING_INFOvalue to thesType()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.intviewMask()the view mask used for rendering.VkCommandBufferInheritanceRenderingInfoviewMask(int value)Sets the specified value to theviewMask()field.
-
-
-
Constructor Detail
-
VkCommandBufferInheritanceRenderingInfo
public VkCommandBufferInheritanceRenderingInfo(java.nio.ByteBuffer container)
Creates aVkCommandBufferInheritanceRenderingInfoinstance 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
-
flags
public int flags()
a bitmask ofVkRenderingFlagBitsused by the render pass instance.
-
viewMask
public int viewMask()
the view mask used for rendering.
-
colorAttachmentCount
public int colorAttachmentCount()
the number of color attachments specified in the render pass instance.
-
pColorAttachmentFormats
@Nullable public java.nio.IntBuffer pColorAttachmentFormats()
a pointer to an array ofVkFormatvalues defining the format of color attachments.
-
depthAttachmentFormat
public int depthAttachmentFormat()
aVkFormatvalue defining the format of the depth attachment.
-
stencilAttachmentFormat
public int stencilAttachmentFormat()
aVkFormatvalue defining the format of the stencil attachment.
-
rasterizationSamples
public int rasterizationSamples()
aVkSampleCountFlagBitsspecifying the number of samples used in rasterization.
-
sType
public VkCommandBufferInheritanceRenderingInfo sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkCommandBufferInheritanceRenderingInfo sType$Default()
Sets theSTRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_RENDERING_INFOvalue to thesType()field.
-
pNext
public VkCommandBufferInheritanceRenderingInfo pNext(long value)
Sets the specified value to thepNext()field.
-
flags
public VkCommandBufferInheritanceRenderingInfo flags(int value)
Sets the specified value to theflags()field.
-
viewMask
public VkCommandBufferInheritanceRenderingInfo viewMask(int value)
Sets the specified value to theviewMask()field.
-
pColorAttachmentFormats
public VkCommandBufferInheritanceRenderingInfo pColorAttachmentFormats(@Nullable java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto thepColorAttachmentFormats()field.
-
depthAttachmentFormat
public VkCommandBufferInheritanceRenderingInfo depthAttachmentFormat(int value)
Sets the specified value to thedepthAttachmentFormat()field.
-
stencilAttachmentFormat
public VkCommandBufferInheritanceRenderingInfo stencilAttachmentFormat(int value)
Sets the specified value to thestencilAttachmentFormat()field.
-
rasterizationSamples
public VkCommandBufferInheritanceRenderingInfo rasterizationSamples(int value)
Sets the specified value to therasterizationSamples()field.
-
set
public VkCommandBufferInheritanceRenderingInfo set(int sType, long pNext, int flags, int viewMask, @Nullable java.nio.IntBuffer pColorAttachmentFormats, int depthAttachmentFormat, int stencilAttachmentFormat, int rasterizationSamples)
Initializes this struct with the specified values.
-
set
public VkCommandBufferInheritanceRenderingInfo set(VkCommandBufferInheritanceRenderingInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkCommandBufferInheritanceRenderingInfo malloc()
Returns a newVkCommandBufferInheritanceRenderingInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkCommandBufferInheritanceRenderingInfo calloc()
Returns a newVkCommandBufferInheritanceRenderingInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkCommandBufferInheritanceRenderingInfo create()
Returns a newVkCommandBufferInheritanceRenderingInfoinstance allocated withBufferUtils.
-
create
public static VkCommandBufferInheritanceRenderingInfo create(long address)
Returns a newVkCommandBufferInheritanceRenderingInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VkCommandBufferInheritanceRenderingInfo createSafe(long address)
-
malloc
public static VkCommandBufferInheritanceRenderingInfo.Buffer malloc(int capacity)
Returns a newVkCommandBufferInheritanceRenderingInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkCommandBufferInheritanceRenderingInfo.Buffer calloc(int capacity)
Returns a newVkCommandBufferInheritanceRenderingInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkCommandBufferInheritanceRenderingInfo.Buffer create(int capacity)
Returns a newVkCommandBufferInheritanceRenderingInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkCommandBufferInheritanceRenderingInfo.Buffer create(long address, int capacity)
Create aVkCommandBufferInheritanceRenderingInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkCommandBufferInheritanceRenderingInfo.Buffer createSafe(long address, int capacity)
-
malloc
public static VkCommandBufferInheritanceRenderingInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkCommandBufferInheritanceRenderingInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkCommandBufferInheritanceRenderingInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkCommandBufferInheritanceRenderingInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkCommandBufferInheritanceRenderingInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkCommandBufferInheritanceRenderingInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkCommandBufferInheritanceRenderingInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkCommandBufferInheritanceRenderingInfo.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().
-
nflags
public static int nflags(long struct)
Unsafe version offlags().
-
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().
-
nrasterizationSamples
public static int nrasterizationSamples(long struct)
Unsafe version ofrasterizationSamples().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nflags
public static void nflags(long struct, int value)Unsafe version offlags.
-
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.
-
nrasterizationSamples
public static void nrasterizationSamples(long struct, int value)Unsafe version ofrasterizationSamples.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-