VkPipelineShaderStageRequiredSubgroupSizeCreateInfo
The VkPipelineShaderStageRequiredSubgroupSizeCreateInfo
structure is
defined as:
typedef struct VkPipelineShaderStageRequiredSubgroupSizeCreateInfo {
VkStructureType sType;
void* pNext;
uint32_t requiredSubgroupSize;
} VkPipelineShaderStageRequiredSubgroupSizeCreateInfo;
or the equivalent
typedef VkPipelineShaderStageRequiredSubgroupSizeCreateInfo VkPipelineShaderStageRequiredSubgroupSizeCreateInfoEXT;
or the equiavlent
typedef VkPipelineShaderStageRequiredSubgroupSizeCreateInfo VkShaderRequiredSubgroupSizeCreateInfoEXT;
sType
is a VkStructureType value identifying this structure.pNext
isNULL
or a pointer to a structure extending this structure.-
requiredSubgroupSize
is an unsigned integer value specifying the required subgroup size for the newly created pipeline shader stage.
If a VkPipelineShaderStageRequiredSubgroupSizeCreateInfo
structure is
included in the pNext
chain of VkPipelineShaderStageCreateInfo,
it specifies that the pipeline shader stage being compiled has a required
subgroup size.
If a VkShaderRequiredSubgroupSizeCreateInfoEXT
structure is included
in the pNext
chain of VkShaderCreateInfoEXT, it specifies that
the shader being compiled has a required subgroup size.
Valid Usage
VUID-VkPipelineShaderStageRequiredSubgroupSizeCreateInfo-requiredSubgroupSize-02760
requiredSubgroupSize
must be a power-of-two integer
VUID-VkPipelineShaderStageRequiredSubgroupSizeCreateInfo-requiredSubgroupSize-02761
requiredSubgroupSize
must be greater or equal to
minSubgroupSize
VUID-VkPipelineShaderStageRequiredSubgroupSizeCreateInfo-requiredSubgroupSize-02762
requiredSubgroupSize
must be less than or equal to
maxSubgroupSize
Valid Usage (Implicit)
VUID-VkPipelineShaderStageRequiredSubgroupSizeCreateInfo-sType-sType
sType
must be VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_REQUIRED_SUBGROUP_SIZE_CREATE_INFO