Function Prototype
vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI
Query maximum supported subpass shading workgroup size for a give render pass
A subpass shading pipeline’s workgroup size is a 2D vector with number of power-of-two in width and height. The maximum number of width and height is implementation-dependent, and may vary for different formats and sample counts of attachments in a render pass.
To query the maximum workgroup size, call:
VkResult vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI(
VkDevice device,
VkRenderPass renderpass,
VkExtent2D* pMaxWorkgroupSize);
device
is a handle to a local device object that was used to create the given render pass.renderPass
is a handle to a render pass object describing the environment in which the pipeline will be used. The pipeline must only be used with a render pass instance compatible with the one provided. See Render Pass Compatibility for more information.pMaxWorkgroupSize
is a pointer to a VkExtent2D structure.
Valid Usage (Implicit)
VUID-vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI-device-parameter
device
must be a valid VkDevice handle
VUID-vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI-renderpass-parameter
renderpass
must be a valid VkRenderPass handle
VUID-vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI-pMaxWorkgroupSize-parameter
pMaxWorkgroupSize
must be a valid pointer to VkExtent2D structures
VUID-vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI-renderpass-parent
renderpass
must have been created, allocated, or retrieved from device