C Specification
To create a CUDA module, call:
// Provided by VK_NV_cuda_kernel_launch
VkResult vkCreateCudaModuleNV(
VkDevice device,
const VkCudaModuleCreateInfoNV* pCreateInfo,
const VkAllocationCallbacks* pAllocator,
VkCudaModuleNV* pModule);
Parameters
-
deviceis the logical device that creates the shader module. -
pCreateInfois a pointer to a VkCudaModuleCreateInfoNV structure. -
pAllocatorcontrols host memory allocation as described in the Memory Allocation chapter. -
pModuleis a pointer to a VkCudaModuleNV handle in which the resulting CUDA module object is returned.
Description
Once a CUDA module has been created, the application may create the function entry point, which must refer to one function in the module.
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.