Values in imageView are loaded and stored according to the values of loadOp and storeOp, within the render area for each device specified in VkRenderingInfo. If imageView is NULL_HANDLE, other members of this structure are ignored; writes to this attachment will be discarded, and no load, store, or multisample resolve operations will be performed.
If resolveMode is RESOLVE_MODE_NONE, then resolveImageView is ignored. If resolveMode is not RESOLVE_MODE_NONE, and resolveImageView is not NULL_HANDLE, a render pass multisample resolve operation is defined for the attachment subresource.
The resolve mode and store operation are independent; it is valid to write both resolved and unresolved values, and equally valid to discard the unresolved values while writing the resolved ones.
Store and resolve operations are only performed at the end of a render pass instance that does not specify the RENDERING_SUSPENDING_BIT_KHR flag.
Load operations are only performed at the beginning of a render pass instance that does not specify the RENDERING_RESUMING_BIT_KHR flag.
Image contents at the end of a suspended render pass instance remain defined for access by a resuming render pass instance.
imageView is not NULL_HANDLE and has a non-integer color format, resolveMode must be RESOLVE_MODE_NONE or RESOLVE_MODE_AVERAGE_BITimageView is not NULL_HANDLE and has an integer color format, resolveMode must be RESOLVE_MODE_NONE or RESOLVE_MODE_SAMPLE_ZERO_BITimageView is not NULL_HANDLE, resolveMode is not RESOLVE_MODE_NONE, and the pNext chain of VkRenderingInfo does not includes a VkMultisampledRenderToSingleSampledInfoEXT structure with the multisampledRenderToSingleSampledEnable field equal to TRUE, imageView must not have a sample count of SAMPLE_COUNT_1_BITimageView is not NULL_HANDLE, resolveMode is not RESOLVE_MODE_NONE, and the pNext chain of VkRenderingInfo does not includes a VkMultisampledRenderToSingleSampledInfoEXT structure with the multisampledRenderToSingleSampledEnable field equal to TRUE, resolveImageView must not be NULL_HANDLEimageView is not NULL_HANDLE, resolveMode is not RESOLVE_MODE_NONE, the pNext chain of VkRenderingInfo includes a VkMultisampledRenderToSingleSampledInfoEXT structure with the multisampledRenderToSingleSampledEnable field equal to TRUE, and imageView has a sample count of SAMPLE_COUNT_1_BIT, resolveImageView must be NULL_HANDLEimageView is not NULL_HANDLE, resolveImageView is not NULL_HANDLE, and resolveMode is not RESOLVE_MODE_NONE, resolveImageView must have a sample count of SAMPLE_COUNT_1_BITimageView is not NULL_HANDLE, resolveImageView is not NULL_HANDLE, and resolveMode is not RESOLVE_MODE_NONE, imageView and resolveImageView must have the same VkFormatimageView is not NULL_HANDLE, imageLayout must not be IMAGE_LAYOUT_UNDEFINED, IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL, IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, or IMAGE_LAYOUT_PREINITIALIZEDimageView is not NULL_HANDLE and resolveMode is not RESOLVE_MODE_NONE, resolveImageLayout must not be IMAGE_LAYOUT_UNDEFINED, IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL, IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL, IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, or IMAGE_LAYOUT_PREINITIALIZEDimageView is not NULL_HANDLE and resolveMode is not RESOLVE_MODE_NONE, resolveImageLayout must not be IMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL or IMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMALimageView is not NULL_HANDLE, imageLayout must not be IMAGE_LAYOUT_SHADING_RATE_OPTIMAL_NVimageView is not NULL_HANDLE and resolveMode is not RESOLVE_MODE_NONE, resolveImageLayout must not be IMAGE_LAYOUT_SHADING_RATE_OPTIMAL_NVimageView is not NULL_HANDLE, imageLayout must not be IMAGE_LAYOUT_FRAGMENT_DENSITY_MAP_OPTIMAL_EXTimageView is not NULL_HANDLE and resolveMode is not RESOLVE_MODE_NONE, resolveImageLayout must not be IMAGE_LAYOUT_FRAGMENT_DENSITY_MAP_OPTIMAL_EXTimageView is not NULL_HANDLE and resolveMode is not RESOLVE_MODE_NONE, resolveImageLayout must not be IMAGE_LAYOUT_READ_ONLY_OPTIMAL_KHRimageView is not NULL_HANDLE, imageLayout must not be IMAGE_LAYOUT_FRAGMENT_SHADING_RATE_ATTACHMENT_OPTIMAL_KHRimageView is not NULL_HANDLE and resolveMode is not RESOLVE_MODE_NONE, resolveImageLayout must not be IMAGE_LAYOUT_FRAGMENT_SHADING_RATE_ATTACHMENT_OPTIMAL_KHRimageView is not NULL_HANDLE, imageLayout must not be IMAGE_LAYOUT_PRESENT_SRC_KHRimageView is not NULL_HANDLE and resolveMode is not RESOLVE_MODE_NONE, resolveImageLayout must not be IMAGE_LAYOUT_PRESENT_SRC_KHRsType must be STRUCTURE_TYPE_RENDERING_ATTACHMENT_INFOpNext must be NULLimageView is not NULL_HANDLE, imageView must be a valid VkImageView handleimageLayout must be a valid VkImageLayout valueresolveMode is not 0, resolveMode must be a valid VkResolveModeFlagBits valueresolveImageView is not NULL_HANDLE, resolveImageView must be a valid VkImageView handleresolveImageLayout must be a valid VkImageLayout valueloadOp must be a valid VkAttachmentLoadOp valuestoreOp must be a valid VkAttachmentStoreOp valueclearValue must be a valid VkClearValue unionimageView, and resolveImageView that are valid handles of non-ignored parameters must have been created, allocated, or retrieved from the same VkDevice
struct VkRenderingAttachmentInfo {
VkStructureType sType;
void const * pNext;
VkImageView imageView;
VkImageLayout imageLayout;
VkResolveModeFlagBits resolveMode;
VkImageView resolveImageView;
VkImageLayout resolveImageLayout;
VkAttachmentLoadOp loadOp;
VkAttachmentStoreOp storeOp;
VkClearValue clearValue;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VkRenderingAttachmentInfo.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | CLEARVALUE
The struct member offsets. |
| public static final int | IMAGELAYOUT
The struct member offsets. |
| public static final int | IMAGEVIEW
The struct member offsets. |
| public static final int | LOADOP
The struct member offsets. |
| public static final int | PNEXT
The struct member offsets. |
| public static final int | RESOLVEIMAGELAYOUT
The struct member offsets. |
| public static final int | RESOLVEIMAGEVIEW
The struct member offsets. |
| public static final int | RESOLVEMODE
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | STOREOP
The struct member offsets. |
| public static final int | STYPE
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VkRenderingAttachmentInfo(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static VkRenderingAttachmentInfo | |
| public static VkRenderingAttachmentInfo. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VkRenderingAttachmentInfo | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkRenderingAttachmentInfo. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public VkClearValue | clearValue()
a |
| public VkRenderingAttachmentInfo | |
| public VkRenderingAttachmentInfo | |
| protected VkRenderingAttachmentInfo | 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 VkRenderingAttachmentInfo | |
| public static VkRenderingAttachmentInfo | create(long address)
Returns a new |
| public static VkRenderingAttachmentInfo. | create(int
the buffer capacity capacity)Returns a new |
| public static VkRenderingAttachmentInfo. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VkRenderingAttachmentInfo | |
| public static VkRenderingAttachmentInfo. | |
| public int | |
| public VkRenderingAttachmentInfo | |
| public long | |
| public VkRenderingAttachmentInfo | |
| public int | |
| public VkRenderingAttachmentInfo | |
| public static VkRenderingAttachmentInfo | |
| public static VkRenderingAttachmentInfo. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VkRenderingAttachmentInfo | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkRenderingAttachmentInfo. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkClearValue | |
| public static void | |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public long | |
| public VkRenderingAttachmentInfo | |
| public int | |
| public VkRenderingAttachmentInfo | |
| public long | |
| public VkRenderingAttachmentInfo | |
| public int | resolveMode()
a |
| public VkRenderingAttachmentInfo | |
| public VkRenderingAttachmentInfo | set(int sType, long pNext, long imageView, int imageLayout, int resolveMode, long resolveImageView, int resolveImageLayout, int loadOp, int storeOp, VkClearValue clearValue)
Initializes this struct with the specified values. |
| public VkRenderingAttachmentInfo | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | |
| public VkRenderingAttachmentInfo | |
| public int | |
| public VkRenderingAttachmentInfo | |
| public VkRenderingAttachmentInfo |