VkCudaModuleCreateInfoNV(3)

# VkCudaModuleCreateInfoNV(3) Manual Page

## Name

VkCudaModuleCreateInfoNV - Structure specifying the parameters to create a CUDA Module

## C Specification

The `VkCudaModuleCreateInfoNV` structure is defined as:

    // Provided by VK_NV_cuda_kernel_launch
    typedef struct VkCudaModuleCreateInfoNV {
        VkStructureType    sType;
        const void*        pNext;
        size_t             dataSize;
        const void*        pData;
    } VkCudaModuleCreateInfoNV;

## Members

- `sType` is a VkStructureType value identifying this structure.

- `pNext` may be `NULL` or may be a pointer to a structure extending this structure.

- `dataSize` is the length of the `pData` array.

- `pData` is a pointer to CUDA code

## Description

Valid Usage

- VUID-VkCudaModuleCreateInfoNV-dataSize-09413
  `dataSize` must be the total size in bytes of the PTX files or binary cache passed to `pData`

Valid Usage (Implicit)

- VUID-VkCudaModuleCreateInfoNV-sType-sType
  `sType` must be VK_STRUCTURE_TYPE_CUDA_MODULE_CREATE_INFO_NV

- VUID-VkCudaModuleCreateInfoNV-pNext-pNext
  `pNext` must be `NULL`

- VUID-VkCudaModuleCreateInfoNV-pData-parameter
  `pData` must be a valid pointer to an array of `dataSize` bytes

- VUID-VkCudaModuleCreateInfoNV-dataSize-arraylength
  `dataSize` must be greater than `0`

## See Also

VK_NV_cuda_kernel_launch, VkStructureType, vkCreateCudaModuleNV

## 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.

## Copyright

Copyright 2014-2026 The Khronos Group Inc.

SPDX-License-Identifier: CC-BY-4.0