C Specification
To set the compute occupancy priority for subsequent compute dispatches, call:
// Provided by VK_NV_compute_occupancy_priority
void vkCmdSetComputeOccupancyPriorityNV(
VkCommandBuffer commandBuffer,
const VkComputeOccupancyPriorityParametersNV* pParameters);
Parameters
-
commandBufferis the command buffer into which the command will be recorded. -
pParametersis a pointer to a VkComputeOccupancyPriorityParametersNV structure specifying the occupancy priority parameters.
Description
The occupancy priority affects how compute workloads utilize GPU compute resources relative to other simultaneously executing workloads. The priority is stateful on a command buffer. All compute dispatch commands issued subsequent to a vkCmdSetComputeOccupancyPriorityNV call will be executed with the specified priority parameters until another vkCmdSetComputeOccupancyPriorityNV call is made.
All command buffers (primary and secondary) start with a priority level equal to the VK_COMPUTE_OCCUPANCY_PRIORITY_NORMAL_NV value. The priority state is not inherited by secondary command buffers - each command buffer maintains its own independent priority state.
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.