Class VkRenderingInfo

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkRenderingInfo>
org.lwjgl.vulkan.VkRenderingInfo
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer
Direct Known Subclasses:
VkRenderingInfoKHR

public class VkRenderingInfo extends org.lwjgl.system.Struct<VkRenderingInfo> implements org.lwjgl.system.NativeResource
Structure specifying render pass instance begin info.
Description

If viewMask is not 0, multiview is enabled.

If there is an instance of VkDeviceGroupRenderPassBeginInfo included in the pNext chain and its deviceRenderAreaCount member is not 0, then renderArea is ignored, and the render area is defined per-device by that structure.

If multiview is enabled, and the multiviewPerViewRenderAreas feature is enabled, and there is an instance of VkMultiviewPerViewRenderAreasRenderPassBeginInfoQCOM included in the pNext chain with perViewRenderAreaCount not equal to 0, then the elements of VkMultiviewPerViewRenderAreasRenderPassBeginInfoQCOM::pPerViewRenderAreas override renderArea and define a render area for each view. In this case, renderArea must be an area at least as large as the union of all the per-view render areas.

Each element of the pColorAttachments array corresponds to an output location in the shader, i.e. if the shader declares an output variable decorated with a Location value of X, then it uses the attachment provided in pColorAttachments[X]. If the imageView member of any element of pColorAttachments is NULL_HANDLE, and resolveMode is not RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID, writes to the corresponding location by a fragment are discarded.

Valid Usage
Valid Usage (Implicit)
See Also

VkRect2D, VkRenderingAttachmentInfo, CmdBeginRendering, CmdBeginRenderingKHR, GetDynamicRenderingTilePropertiesQCOM

Layout


 struct VkRenderingInfo {
     VkStructureType sType();
     void const * pNext();
     VkRenderingFlags flags();
     VkRect2D renderArea();
     uint32_t layerCount();
     uint32_t viewMask();
     uint32_t colorAttachmentCount();
     VkRenderingAttachmentInfo const * pColorAttachments();
     VkRenderingAttachmentInfo const * pDepthAttachment();
     VkRenderingAttachmentInfo const * pStencilAttachment();
 }