C Specification
If the VkSubpassEndInfo::pNext chain
or VkRenderingEndInfoEXT::pNext chain
includes a VkRenderPassFragmentDensityMapOffsetEndInfoEXT structure,
then that structure includes an array of fragment density map offsets per
layer for the render pass.
The VkRenderPassFragmentDensityMapOffsetEndInfoEXT structure is
defined as:
// Provided by VK_EXT_fragment_density_map_offset
typedef struct VkRenderPassFragmentDensityMapOffsetEndInfoEXT {
VkStructureType sType;
const void* pNext;
uint32_t fragmentDensityOffsetCount;
const VkOffset2D* pFragmentDensityOffsets;
} VkRenderPassFragmentDensityMapOffsetEndInfoEXT;
or the equivalent:
// Provided by VK_QCOM_fragment_density_map_offset
typedef VkRenderPassFragmentDensityMapOffsetEndInfoEXT VkSubpassFragmentDensityMapOffsetEndInfoQCOM;
Members
-
sTypeis a VkStructureType value identifying this structure. -
pNextisNULLor a pointer to a structure extending this structure. -
fragmentDensityOffsetCountis the number of offsets being specified. -
pFragmentDensityOffsetsis a pointer to an array of VkOffset2D structs, each of which describes the offset per layer.
Description
The array elements are given per layer as defined by
Fetch Density Value, where
index = layer.
Each (x,y) offset is in framebuffer pixels and shifts the fetch of the
fragment density map by that amount.
Offsets can be positive or negative.
If neither the VkSubpassEndInfo::pNext chain for the last
subpass of a render pass nor the VkRenderingEndInfoEXT::pNext
chain of a dynamic render pass include
VkRenderPassFragmentDensityMapOffsetEndInfoEXT, or if
fragmentDensityOffsetCount is zero, then the offset (0,0) is
used for Fetch Density Value.
Document Notes
For more information, see the Vulkan Specification
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.