Class VkCudaFunctionCreateInfoNV

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkCudaFunctionCreateInfoNV>
org.lwjgl.vulkan.VkCudaFunctionCreateInfoNV
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class VkCudaFunctionCreateInfoNV extends org.lwjgl.system.Struct<VkCudaFunctionCreateInfoNV> implements org.lwjgl.system.NativeResource
Structure specifying the parameters to create a CUDA Function.
Valid Usage (Implicit)
See Also

CreateCudaFunctionNV

Layout


 struct VkCudaFunctionCreateInfoNV {
     VkStructureType sType();
     void const * pNext();
     VkCudaModuleNV module();
     char const * pName();
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • STYPE

      public static final int STYPE
      The struct member offsets.
    • PNEXT

      public static final int PNEXT
      The struct member offsets.
    • MODULE

      public static final int MODULE
      The struct member offsets.
    • PNAME

      public static final int PNAME
      The struct member offsets.
  • Constructor Details

    • VkCudaFunctionCreateInfoNV

      public VkCudaFunctionCreateInfoNV(ByteBuffer container)
      Creates a VkCudaFunctionCreateInfoNV instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<VkCudaFunctionCreateInfoNV>
    • sType

      public int sType()
      a VkStructureType value identifying this structure.
    • pNext

      public long pNext()
      NULL or a pointer to a structure extending this structure.
    • module

      public long module()
      the CUDA VkCudaModuleNV module in which the function resides.
    • pName

      public ByteBuffer pName()
      a null-terminated UTF-8 string containing the name of the shader entry point for this stage.
    • pNameString

      public String pNameString()
      a null-terminated UTF-8 string containing the name of the shader entry point for this stage.
    • sType

      public VkCudaFunctionCreateInfoNV sType(int value)
      Sets the specified value to the sType() field.
    • sType$Default

      public VkCudaFunctionCreateInfoNV sType$Default()
    • pNext

      public VkCudaFunctionCreateInfoNV pNext(long value)
      Sets the specified value to the pNext() field.
    • module

      public VkCudaFunctionCreateInfoNV module(long value)
      Sets the specified value to the module() field.
    • pName

      public VkCudaFunctionCreateInfoNV pName(ByteBuffer value)
      Sets the address of the specified encoded string to the pName() field.
    • set

      public VkCudaFunctionCreateInfoNV set(int sType, long pNext, long module, ByteBuffer pName)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static VkCudaFunctionCreateInfoNV malloc()
      Returns a new VkCudaFunctionCreateInfoNV instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static VkCudaFunctionCreateInfoNV calloc()
      Returns a new VkCudaFunctionCreateInfoNV instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static VkCudaFunctionCreateInfoNV create()
      Returns a new VkCudaFunctionCreateInfoNV instance allocated with BufferUtils.
    • create

      public static VkCudaFunctionCreateInfoNV create(long address)
      Returns a new VkCudaFunctionCreateInfoNV instance for the specified memory address.
    • createSafe

      public static @Nullable VkCudaFunctionCreateInfoNV createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static VkCudaFunctionCreateInfoNV.Buffer malloc(int capacity)
      Returns a new VkCudaFunctionCreateInfoNV.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static VkCudaFunctionCreateInfoNV.Buffer calloc(int capacity)
      Returns a new VkCudaFunctionCreateInfoNV.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VkCudaFunctionCreateInfoNV.Buffer create(int capacity)
      Returns a new VkCudaFunctionCreateInfoNV.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VkCudaFunctionCreateInfoNV.Buffer create(long address, int capacity)
      Create a VkCudaFunctionCreateInfoNV.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable VkCudaFunctionCreateInfoNV.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static VkCudaFunctionCreateInfoNV malloc(org.lwjgl.system.MemoryStack stack)
      Returns a new VkCudaFunctionCreateInfoNV instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static VkCudaFunctionCreateInfoNV calloc(org.lwjgl.system.MemoryStack stack)
      Returns a new VkCudaFunctionCreateInfoNV instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static VkCudaFunctionCreateInfoNV.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new VkCudaFunctionCreateInfoNV.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static VkCudaFunctionCreateInfoNV.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new VkCudaFunctionCreateInfoNV.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nsType

      public static int nsType(long struct)
      Unsafe version of sType().
    • npNext

      public static long npNext(long struct)
      Unsafe version of pNext().
    • nmodule

      public static long nmodule(long struct)
      Unsafe version of module().
    • npName

      public static ByteBuffer npName(long struct)
      Unsafe version of pName().
    • npNameString

      public static String npNameString(long struct)
      Unsafe version of pNameString().
    • nsType

      public static void nsType(long struct, int value)
      Unsafe version of sType.
    • npNext

      public static void npNext(long struct, long value)
      Unsafe version of pNext.
    • nmodule

      public static void nmodule(long struct, long value)
      Unsafe version of module.
    • npName

      public static void npName(long struct, ByteBuffer value)
      Unsafe version of pName.
    • validate

      public static void validate(long struct)
      Validates pointer members that should not be NULL.
      Parameters:
      struct - the struct to validate