C Specification
The VkRenderingFragmentShadingRateAttachmentInfoKHR
structure is
defined as:
// Provided by VK_KHR_dynamic_rendering with VK_KHR_fragment_shading_rate
typedef struct VkRenderingFragmentShadingRateAttachmentInfoKHR {
VkStructureType sType;
const void* pNext;
VkImageView imageView;
VkImageLayout imageLayout;
VkExtent2D shadingRateAttachmentTexelSize;
} VkRenderingFragmentShadingRateAttachmentInfoKHR;
Members
-
sType
is the type of this structure. -
pNext
isNULL
or a pointer to a structure extending this structure. -
imageView
is the image view that will be used as a fragment shading rate attachment. -
imageLayout
is the layout thatimageView
will be in during rendering. -
shadingRateAttachmentTexelSize
specifies the number of pixels corresponding to each texel inimageView
.
Description
This structure can be included in the pNext
chain of
VkRenderingInfo to define a
fragment shading rate
attachment.
If imageView
is VK_NULL_HANDLE, or if this structure is not
specified, the implementation behaves as if a valid shading rate attachment
was specified with all texels specifying a single pixel per fragment.
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.