Function Prototype

vkDestroyCudaModuleNV

Destroy a CUDA module

To destroy a CUDA shader module, call:

void vkDestroyCudaModuleNV(
    VkDevice device,
    VkCudaModuleNV module,
    const VkAllocationCallbacks* pAllocator);
  • device is the logical device that destroys the shader module.
  • module is the handle of the CUDA module to destroy.
  • pAllocator controls host memory allocation as described in the Memory Allocation chapter.

Valid Usage (Implicit)

VUID-vkDestroyCudaModuleNV-pAllocator-parameter

If pAllocator is not NULL, pAllocator must be a valid pointer to a valid VkAllocationCallbacks structure

VUID-vkDestroyCudaModuleNV-module-parent

module must have been created, allocated, or retrieved from device