Function Prototype
vkDestroyCudaModuleNV
Destroy a CUDA module
To destroy a CUDA shader module, call:
void vkDestroyCudaModuleNV(
VkDevice device,
VkCudaModuleNV module,
const VkAllocationCallbacks* pAllocator);
deviceis the logical device that destroys the shader module.moduleis the handle of the CUDA module to destroy.pAllocatorcontrols host memory allocation as described in the Memory Allocation chapter.
Valid Usage (Implicit)
VUID-vkDestroyCudaModuleNV-device-parameter
device must be a valid VkDevice handle
VUID-vkDestroyCudaModuleNV-module-parameter
module must be a valid VkCudaModuleNV handle
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