Function Prototype
vkCreateCudaModuleNV
Creates a new CUDA module object
To create a CUDA module, call:
VkResult vkCreateCudaModuleNV(
VkDevice device,
const VkCudaModuleCreateInfoNV* pCreateInfo,
const VkAllocationCallbacks* pAllocator,
VkCudaModuleNV* pModule);
pub fn create_cuda_module_nv(
device: vk::Device,
p_create_info: *const vk::CudaModuleCreateInfoNV,
p_allocator: *const vk::AllocationCallbacks,
p_module: *mut vk::CudaModuleNV,
) -> vk::Result;
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.
Once a CUDA module has been created, the application may create the function entry point, which must refer to one function in the module.
Valid Usage (Implicit)
VUID-vkCreateCudaModuleNV-device-parameter
device must be a valid VkDevice handle
VUID-vkCreateCudaModuleNV-pCreateInfo-parameter
pCreateInfo must be a valid pointer to a valid VkCudaModuleCreateInfoNV structure
VUID-vkCreateCudaModuleNV-pAllocator-parameter
If pAllocator is not NULL, pAllocator must be a valid pointer to a valid VkAllocationCallbacks structure
VUID-vkCreateCudaModuleNV-pModule-parameter
pModule must be a valid pointer to a VkCudaModuleNV handle
VUID-vkCreateCudaModuleNV-device-queuecount
The device must have been created with at least 1 queue
Parent
VK_NV_cuda_kernel_launchType
Function Prototype
Return Values
VK_SUCCESS
VK_ERROR_INITIALIZATION_FAILED
VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_UNKNOWN
VK_ERROR_VALIDATION_FAILED