Function Prototype
vkAcquireProfilingLockKHR
Acquires the profiling lock
To record and submit a command buffer containing a performance query pool the profiling lock must be held. The profiling lock must be acquired prior to any call to vkBeginCommandBuffer that will be using a performance query pool. The profiling lock must be held while any command buffer containing a performance query pool is in the recording, executable, or pending state. To acquire the profiling lock, call:
VkResult vkAcquireProfilingLockKHR(
VkDevice device,
const VkAcquireProfilingLockInfoKHR* pInfo);
pub fn acquire_profiling_lock_khr(
device: vk::Device,
p_info: *const vk::AcquireProfilingLockInfoKHR,
) -> vk::Result;
deviceis the logical device to profile.pInfois a pointer to a VkAcquireProfilingLockInfoKHR structure containing information about how the profiling is to be acquired.
Implementations may allow multiple actors to hold the profiling lock concurrently.
Valid Usage (Implicit)
VUID-vkAcquireProfilingLockKHR-device-parameter
device must be a valid VkDevice handle
VUID-vkAcquireProfilingLockKHR-pInfo-parameter
pInfo must be a valid pointer to a valid VkAcquireProfilingLockInfoKHR structure
Parent
VK_KHR_performance_queryType
Function Prototype
Return Values
VK_SUCCESS
VK_ERROR_OUT_OF_HOST_MEMORY
VK_TIMEOUT
VK_ERROR_UNKNOWN
VK_ERROR_VALIDATION_FAILED