C Specification
To get memory usage information for a command pool object, call:
// Provided by VKSC_VERSION_1_0
void vkGetCommandPoolMemoryConsumption(
VkDevice device,
VkCommandPool commandPool,
VkCommandBuffer commandBuffer,
VkCommandPoolMemoryConsumption* pConsumption);
Parameters
-
device
is the logical device that owns the command pool. -
commandPool
is the command pool from which to query the memory usage. -
commandBuffer
is an optional command buffer from which to query the memory usage. -
pConsumption
is a pointer to aVkCommandPoolMemoryConsumption
structure where the memory usage is written.
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.