Structures
VkShadingRatePaletteNV
Structure specifying a single shading rate palette
The VkShadingRatePaletteNV
structure specifies to contents of a single
shading rate image palette and is defined as:
typedef struct VkShadingRatePaletteNV {
uint32_t shadingRatePaletteEntryCount;
const VkShadingRatePaletteEntryNV* pShadingRatePaletteEntries;
} VkShadingRatePaletteNV;
shadingRatePaletteEntryCount
specifies the number of entries in the shading rate image palette.pShadingRatePaletteEntries
is a pointer to an array of VkShadingRatePaletteEntryNV enums defining the shading rate for each palette entry.
Valid Usage
VUID-VkShadingRatePaletteNV-shadingRatePaletteEntryCount-02071
shadingRatePaletteEntryCount
must be between 1
and
VkPhysicalDeviceShadingRateImagePropertiesNV
::shadingRatePaletteSize
,
inclusive
Valid Usage (Implicit)
VUID-VkShadingRatePaletteNV-pShadingRatePaletteEntries-parameter
pShadingRatePaletteEntries
must be a valid pointer to an array of shadingRatePaletteEntryCount
valid VkShadingRatePaletteEntryNV values
VUID-VkShadingRatePaletteNV-shadingRatePaletteEntryCount-arraylength
shadingRatePaletteEntryCount
must be greater than 0