Parameters defined by this structure with the same name as those in VkAttachmentReference have the identical effect to those parameters.
aspectMask is ignored when this structure is used to describe anything other than an input attachment reference.
If the separateDepthStencilLayouts feature is enabled, and attachment has a depth/stencil format, layout can be set to a layout that only specifies the layout of the depth aspect.
If layout only specifies the layout of the depth aspect of the attachment, the layout of the stencil aspect is specified by the stencilLayout member of a VkAttachmentReferenceStencilLayout structure included in the pNext chain. Otherwise, layout describes the layout for all relevant image aspects.
attachment is not ATTACHMENT_UNUSED, layout must not be IMAGE_LAYOUT_UNDEFINED, IMAGE_LAYOUT_PREINITIALIZED, or IMAGE_LAYOUT_PRESENT_SRC_KHRseparateDepthStencilLayouts feature is not enabled, and attachment is not ATTACHMENT_UNUSED, layout must not be IMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL, IMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL, IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL, or IMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL,synchronization2 feature is not enabled, layout must not be IMAGE_LAYOUT_ATTACHMENT_OPTIMAL_KHR or IMAGE_LAYOUT_READ_ONLY_OPTIMAL_KHRattachmentFeedbackLoopLayout feature is not enabled, layout must not be IMAGE_LAYOUT_ATTACHMENT_FEEDBACK_LOOP_OPTIMAL_EXTsType must be STRUCTURE_TYPE_ATTACHMENT_REFERENCE_2pNext must be NULL or a pointer to a valid instance of VkAttachmentReferenceStencilLayoutsType value of each struct in the pNext chain must be uniquelayout must be a valid VkImageLayout valueVkFragmentShadingRateAttachmentInfoKHR, VkSubpassDescription2, VkSubpassDescriptionDepthStencilResolve
struct VkAttachmentReference2 {
VkStructureType sType;
void const * pNext;
uint32_t attachment;
VkImageLayout layout;
VkImageAspectFlags aspectMask;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VkAttachmentReference2.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | ASPECTMASK
The struct member offsets. |
| public static final int | ATTACHMENT
The struct member offsets. |
| public static final int | LAYOUT
The struct member offsets. |
| public static final int | PNEXT
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | STYPE
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VkAttachmentReference2(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public int | aspectMask()
a mask of which aspect(s) can be accessed within the specified subpass as an input attachment. |
| public VkAttachmentReference2 | |
| public int | attachment()
either an integer value identifying an attachment at the corresponding index in |
| public VkAttachmentReference2 | |
| public static VkAttachmentReference2 | |
| public static VkAttachmentReference2. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VkAttachmentReference2 | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkAttachmentReference2. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected VkAttachmentReference2 | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static VkAttachmentReference2 | |
| public static VkAttachmentReference2 | |
| public static VkAttachmentReference2. | create(int
the buffer capacity capacity)Returns a new |
| public static VkAttachmentReference2. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VkAttachmentReference2 | |
| public static VkAttachmentReference2. | |
| public int | |
| public VkAttachmentReference2 | |
| public static VkAttachmentReference2 | |
| public static VkAttachmentReference2. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VkAttachmentReference2 | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkAttachmentReference2. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public long | |
| public VkAttachmentReference2 | |
| public VkAttachmentReference2 | pNext(VkAttachmentReferenceStencilLayout value)
Prepends the specified |
| public VkAttachmentReference2 | pNext(VkAttachmentReferenceStencilLayoutKHR value)
Prepends the specified |
| public VkAttachmentReference2 | set(int sType, long pNext, int attachment, int layout, int aspectMask)
Initializes this struct with the specified values. |
| public VkAttachmentReference2 | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | |
| public VkAttachmentReference2 | |
| public VkAttachmentReference2 |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| ASPECTMASK | back to summary |
|---|---|
| public static final int ASPECTMASK The struct member offsets. | |
| ATTACHMENT | back to summary |
|---|---|
| public static final int ATTACHMENT The struct member offsets. | |
| LAYOUT | back to summary |
|---|---|
| public static final int LAYOUT The struct member offsets. | |
| PNEXT | back to summary |
|---|---|
| public static final int PNEXT The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| STYPE | back to summary |
|---|---|
| public static final int STYPE The struct member offsets. | |
| VkAttachmentReference2 | back to summary |
|---|---|
| protected VkAttachmentReference2(long address, ByteBuffer container) | |
| VkAttachmentReference2 | back to summary |
|---|---|
| public VkAttachmentReference2(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| aspectMask | back to summary |
|---|---|
| public int aspectMask() a mask of which aspect(s) can be accessed within the specified subpass as an input attachment.
| |
| aspectMask | back to summary |
|---|---|
| public VkAttachmentReference2 aspectMask(int value) Sets the specified value to the | |
| attachment | back to summary |
|---|---|
| public int attachment() either an integer value identifying an attachment at the corresponding index in
| |
| attachment | back to summary |
|---|---|
| public VkAttachmentReference2 attachment(int value) Sets the specified value to the | |
| calloc | back to summary |
|---|---|
| public static VkAttachmentReference2 calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static VkAttachmentReference2. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkAttachmentReference2 calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkAttachmentReference2. Returns a new
| |
| create | back to summary |
|---|---|
| protected VkAttachmentReference2 create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static VkAttachmentReference2 create() Returns a new | |
| create | back to summary |
|---|---|
| public static VkAttachmentReference2 create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static VkAttachmentReference2. Returns a new
| |
| create | back to summary |
|---|---|
| public static VkAttachmentReference2. Create a
| |
| createSafe | back to summary |
|---|---|
| public static VkAttachmentReference2 createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static VkAttachmentReference2. Like
| |
| layout | back to summary |
|---|---|
| public int layout() a
| |
| layout | back to summary |
|---|---|
| public VkAttachmentReference2 layout(int value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static VkAttachmentReference2 malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static VkAttachmentReference2. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkAttachmentReference2 malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkAttachmentReference2. Returns a new
| |
| naspectMask | back to summary |
|---|---|
| public static int naspectMask(long struct) Unsafe version of | |
| naspectMask | back to summary |
|---|---|
| public static void naspectMask(long struct, int value) Unsafe version of | |
| nattachment | back to summary |
|---|---|
| public static int nattachment(long struct) Unsafe version of | |
| nattachment | back to summary |
|---|---|
| public static void nattachment(long struct, int value) Unsafe version of | |
| nlayout | back to summary |
|---|---|
| public static int nlayout(long struct) Unsafe version of | |
| nlayout | back to summary |
|---|---|
| public static void nlayout(long struct, int value) Unsafe version of | |
| npNext | back to summary |
|---|---|
| public static long npNext(long struct) Unsafe version of | |
| npNext | back to summary |
|---|---|
| public static void npNext(long struct, long value) Unsafe version of | |
| nsType | back to summary |
|---|---|
| public static int nsType(long struct) Unsafe version of | |
| nsType | back to summary |
|---|---|
| public static void nsType(long struct, int value) Unsafe version of | |
| pNext | back to summary |
|---|---|
| public long pNext()
| |
| pNext | back to summary |
|---|---|
| public VkAttachmentReference2 pNext(long value) Sets the specified value to the | |
| pNext | back to summary |
|---|---|
| public VkAttachmentReference2 pNext(VkAttachmentReferenceStencilLayout value) Prepends the specified | |
| pNext | back to summary |
|---|---|
| public VkAttachmentReference2 pNext(VkAttachmentReferenceStencilLayoutKHR value) Prepends the specified | |
| set | back to summary |
|---|---|
| public VkAttachmentReference2 set(int sType, long pNext, int attachment, int layout, int aspectMask) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public VkAttachmentReference2 set(VkAttachmentReference2 src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| sType | back to summary |
|---|---|
| public int sType() a
| |
| sType | back to summary |
|---|---|
| public VkAttachmentReference2 sType(int value) Sets the specified value to the | |
| sType$Default | back to summary |
|---|---|
| public VkAttachmentReference2 sType$Default() Sets the | |
VkAttachmentReference2 structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final VkAttachmentReference2 |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public VkAttachmentReference2. | |
| public int | |
| public VkAttachmentReference2. | |
| protected VkAttachmentReference2 | |
| public int | |
| public VkAttachmentReference2. | |
| public long | |
| public VkAttachmentReference2. | |
| public VkAttachmentReference2. | pNext(VkAttachmentReferenceStencilLayout value)
Prepends the specified |
| public VkAttachmentReference2. | pNext(VkAttachmentReferenceStencilLayoutKHR value)
Prepends the specified |
| protected VkAttachmentReference2. | |
| public int | |
| public VkAttachmentReference2. | |
| public VkAttachmentReference2. | sType$Default()
Sets the |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final VkAttachmentReference2 ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| aspectMask | back to summary |
|---|---|
public int aspectMask()
| |
| aspectMask | back to summary |
|---|---|
| public VkAttachmentReference2. Sets the specified value to the | |
| attachment | back to summary |
|---|---|
public int attachment()
| |
| attachment | back to summary |
|---|---|
| public VkAttachmentReference2. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected VkAttachmentReference2 getElementFactory() Implements abstract org.
| |
| layout | back to summary |
|---|---|
public int layout()
| |
| layout | back to summary |
|---|---|
| public VkAttachmentReference2. Sets the specified value to the | |
| pNext | back to summary |
|---|---|
public long pNext()
| |
| pNext | back to summary |
|---|---|
| public VkAttachmentReference2. Sets the specified value to the | |
| pNext | back to summary |
|---|---|
| public VkAttachmentReference2. Prepends the specified | |
| pNext | back to summary |
|---|---|
| public VkAttachmentReference2. Prepends the specified | |
| self | back to summary |
|---|---|
| protected VkAttachmentReference2. Implements abstract org.
| |
| sType | back to summary |
|---|---|
public int sType()
| |
| sType | back to summary |
|---|---|
| public VkAttachmentReference2. Sets the specified value to the | |
| sType$Default | back to summary |
|---|---|
| public VkAttachmentReference2. Sets the | |