Function Prototype

vkGetPipelineIndirectMemoryRequirementsNV

Get the memory requirements for the compute indirect pipeline

To determine the memory requirements for a compute pipeline’s metadata, call:

void vkGetPipelineIndirectMemoryRequirementsNV(
    VkDevice device,
    const VkComputePipelineCreateInfo* pCreateInfo,
    VkMemoryRequirements2* pMemoryRequirements);
  • device is the logical device that owns the buffer.
  • pCreateInfo is a VkComputePipelineCreateInfo structure specifying the creation parameters of the compute pipeline whose memory requirements are being queried.
  • pMemoryRequirements is a pointer to a VkMemoryRequirements2 structure in which the requested pipeline’s memory requirements are returned.

If pCreateInfo→pNext chain includes a pointer to a VkComputePipelineIndirectBufferInfoNV structure, then the contents of that structure are ignored.