cmdBindInvocationMaskHUAWEI :: MonadIO io=> CommandBuffercommandBufferis the command buffer into which the command will be recorded-> ImageViewimageViewis an image view handle specifying the invocation mask imageimageViewmay be NULL_HANDLE, which is equivalent to specifying a view of an image filled with ones value.-> ImageLayoutimageLayoutis the layout that the image subresources accessible fromimageViewwill be in when the invocation mask image is accessed-> io ()
vkCmdBindInvocationMaskHUAWEI - Bind an invocation mask image on a command buffer
Valid Usage
The invocationMask feature must be enabled
If
imageViewis not NULL_HANDLE, it must be a valid ImageView handle of type IMAGE_VIEW_TYPE_2DIf
imageViewis not NULL_HANDLE, it must have a format of FORMAT_R8_UINTIf
imageViewis not NULL_HANDLE, it must have been created with the IMAGE_USAGE_INVOCATION_MASK_BIT_HUAWEI usage flag setIf
imageViewis not NULL_HANDLE,imageLayoutmust be IMAGE_LAYOUT_GENERALThread mask image resolution must match the
widthandheightin cmdTraceRaysKHREach element in the invocation mask image must have the value
0or1. The value 1 means the invocation is activedepthin cmdTraceRaysKHR must be 1
Valid Usage (Implicit)
commandBuffermust be a valid CommandBuffer handle
If
imageViewis not NULL_HANDLE,imageViewmust be a valid ImageView handleimageLayoutmust be a valid ImageLayout valuecommandBuffermust be in the recording stateThe CommandPool that
commandBufferwas allocated from must support QUEUE_COMPUTE_BIT operationsThis command must only be called outside of a render pass instance
This command must only be called outside of a video coding scope
Both of
commandBuffer, andimageViewthat are valid handles of non-ignored parameters must have been created, allocated, or retrieved from the same Device
Host Synchronization
Host access to
commandBuffermust be externally synchronized
Host access to the CommandPool that
commandBufferwas allocated from must be externally synchronized
Command Properties
'
Primary Secondary | Outside | Outside | VK_QUEUE_COMPUTE_BIT | State |
Conditional Rendering
vkCmdBindInvocationMaskHUAWEI is not affected by conditional rendering
See Also
VK_HUAWEI_invocation_mask, CommandBuffer, ImageLayout, ImageView