Class CUarrayMapInfo

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

public class CUarrayMapInfo extends org.lwjgl.system.Struct<CUarrayMapInfo> implements org.lwjgl.system.NativeResource

Layout


 struct CUarrayMapInfo {
     CUresourcetype resourceType;
     union {
         CUmipmappedArray mipmap;
         CUarray array;
     } resource;
     CUarraySparseSubresourceType subresourceType;
     union {
         struct {
             unsigned int level;
             unsigned int layer;
             unsigned int offsetX;
             unsigned int offsetY;
             unsigned int offsetZ;
             unsigned int extentWidth;
             unsigned int extentHeight;
             unsigned int extentDepth;
         } sparseLevel;
         struct {
             unsigned int layer;
             unsigned long long offset;
             unsigned long long size;
         } miptail;
     } subresource;
     CUmemOperationType memOperationType;
     CUmemHandleType memHandleType;
     union {
         CUmemGenericAllocationHandle memHandle;
     } memHandle;
     unsigned long long offset;
     unsigned int deviceBitMask;
     unsigned int flags;
     unsigned int reserved[2];
 }
  • Field Details

    • SIZEOF

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

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

      public static final int RESOURCETYPE
      The struct member offsets.
    • RESOURCE

      public static final int RESOURCE
      The struct member offsets.
    • RESOURCE_MIPMAP

      public static final int RESOURCE_MIPMAP
      The struct member offsets.
    • RESOURCE_ARRAY

      public static final int RESOURCE_ARRAY
      The struct member offsets.
    • SUBRESOURCETYPE

      public static final int SUBRESOURCETYPE
      The struct member offsets.
    • SUBRESOURCE

      public static final int SUBRESOURCE
      The struct member offsets.
    • SUBRESOURCE_SPARSELEVEL

      public static final int SUBRESOURCE_SPARSELEVEL
      The struct member offsets.
    • SUBRESOURCE_SPARSELEVEL_LEVEL

      public static final int SUBRESOURCE_SPARSELEVEL_LEVEL
      The struct member offsets.
    • SUBRESOURCE_SPARSELEVEL_LAYER

      public static final int SUBRESOURCE_SPARSELEVEL_LAYER
      The struct member offsets.
    • SUBRESOURCE_SPARSELEVEL_OFFSETX

      public static final int SUBRESOURCE_SPARSELEVEL_OFFSETX
      The struct member offsets.
    • SUBRESOURCE_SPARSELEVEL_OFFSETY

      public static final int SUBRESOURCE_SPARSELEVEL_OFFSETY
      The struct member offsets.
    • SUBRESOURCE_SPARSELEVEL_OFFSETZ

      public static final int SUBRESOURCE_SPARSELEVEL_OFFSETZ
      The struct member offsets.
    • SUBRESOURCE_SPARSELEVEL_EXTENTWIDTH

      public static final int SUBRESOURCE_SPARSELEVEL_EXTENTWIDTH
      The struct member offsets.
    • SUBRESOURCE_SPARSELEVEL_EXTENTHEIGHT

      public static final int SUBRESOURCE_SPARSELEVEL_EXTENTHEIGHT
      The struct member offsets.
    • SUBRESOURCE_SPARSELEVEL_EXTENTDEPTH

      public static final int SUBRESOURCE_SPARSELEVEL_EXTENTDEPTH
      The struct member offsets.
    • SUBRESOURCE_MIPTAIL

      public static final int SUBRESOURCE_MIPTAIL
      The struct member offsets.
    • SUBRESOURCE_MIPTAIL_LAYER

      public static final int SUBRESOURCE_MIPTAIL_LAYER
      The struct member offsets.
    • SUBRESOURCE_MIPTAIL_OFFSET

      public static final int SUBRESOURCE_MIPTAIL_OFFSET
      The struct member offsets.
    • SUBRESOURCE_MIPTAIL_SIZE

      public static final int SUBRESOURCE_MIPTAIL_SIZE
      The struct member offsets.
    • MEMOPERATIONTYPE

      public static final int MEMOPERATIONTYPE
      The struct member offsets.
    • MEMHANDLETYPE

      public static final int MEMHANDLETYPE
      The struct member offsets.
    • MEMHANDLE

      public static final int MEMHANDLE
      The struct member offsets.
    • MEMHANDLE_MEMHANDLE

      public static final int MEMHANDLE_MEMHANDLE
      The struct member offsets.
    • OFFSET

      public static final int OFFSET
      The struct member offsets.
    • DEVICEBITMASK

      public static final int DEVICEBITMASK
      The struct member offsets.
    • FLAGS

      public static final int FLAGS
      The struct member offsets.
    • RESERVED

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

    • CUarrayMapInfo

      public CUarrayMapInfo(ByteBuffer container)
      Creates a CUarrayMapInfo 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<CUarrayMapInfo>
    • resourceType

      public int resourceType()
      Returns:
      the value of the resourceType field.
    • resource_mipmap

      public long resource_mipmap()
      Returns:
      the value of the resource.mipmap field.
    • resource_array

      public long resource_array()
      Returns:
      the value of the resource.array field.
    • subresourceType

      public int subresourceType()
      Returns:
      the value of the subresourceType field.
    • subresource_sparseLevel_level

      public int subresource_sparseLevel_level()
      Returns:
      the value of the subresource.sparseLevel.level field.
    • subresource_sparseLevel_layer

      public int subresource_sparseLevel_layer()
      Returns:
      the value of the subresource.sparseLevel.layer field.
    • subresource_sparseLevel_offsetX

      public int subresource_sparseLevel_offsetX()
      Returns:
      the value of the subresource.sparseLevel.offsetX field.
    • subresource_sparseLevel_offsetY

      public int subresource_sparseLevel_offsetY()
      Returns:
      the value of the subresource.sparseLevel.offsetY field.
    • subresource_sparseLevel_offsetZ

      public int subresource_sparseLevel_offsetZ()
      Returns:
      the value of the subresource.sparseLevel.offsetZ field.
    • subresource_sparseLevel_extentWidth

      public int subresource_sparseLevel_extentWidth()
      Returns:
      the value of the subresource.sparseLevel.extentWidth field.
    • subresource_sparseLevel_extentHeight

      public int subresource_sparseLevel_extentHeight()
      Returns:
      the value of the subresource.sparseLevel.extentHeight field.
    • subresource_sparseLevel_extentDepth

      public int subresource_sparseLevel_extentDepth()
      Returns:
      the value of the subresource.sparseLevel.extentDepth field.
    • subresource_miptail_layer

      public int subresource_miptail_layer()
      Returns:
      the value of the subresource.miptail.layer field.
    • subresource_miptail_offset

      public long subresource_miptail_offset()
      Returns:
      the value of the subresource.miptail.offset field.
    • subresource_miptail_size

      public long subresource_miptail_size()
      Returns:
      the value of the subresource.miptail.size field.
    • memOperationType

      public int memOperationType()
      Returns:
      the value of the memOperationType field.
    • memHandleType

      public int memHandleType()
      Returns:
      the value of the memHandleType field.
    • memHandle_memHandle

      public long memHandle_memHandle()
      Returns:
      the value of the memHandle.memHandle field.
    • offset

      public long offset()
      Returns:
      the value of the offset field.
    • deviceBitMask

      public int deviceBitMask()
      Returns:
      the value of the deviceBitMask field.
    • flags

      public int flags()
      Returns:
      the value of the flags field.
    • reserved

      public IntBuffer reserved()
      Returns:
      a IntBuffer view of the reserved field.
    • reserved

      public int reserved(int index)
      Returns:
      the value at the specified index of the reserved field.
    • resourceType

      public CUarrayMapInfo resourceType(int value)
      Sets the specified value to the resourceType field.
    • resource_mipmap

      public CUarrayMapInfo resource_mipmap(long value)
      Sets the specified value to the mipmap field.
    • resource_array

      public CUarrayMapInfo resource_array(long value)
      Sets the specified value to the array field.
    • subresourceType

      public CUarrayMapInfo subresourceType(int value)
      Sets the specified value to the subresourceType field.
    • subresource_sparseLevel_level

      public CUarrayMapInfo subresource_sparseLevel_level(int value)
      Sets the specified value to the level field.
    • subresource_sparseLevel_layer

      public CUarrayMapInfo subresource_sparseLevel_layer(int value)
      Sets the specified value to the layer field.
    • subresource_sparseLevel_offsetX

      public CUarrayMapInfo subresource_sparseLevel_offsetX(int value)
      Sets the specified value to the offsetX field.
    • subresource_sparseLevel_offsetY

      public CUarrayMapInfo subresource_sparseLevel_offsetY(int value)
      Sets the specified value to the offsetY field.
    • subresource_sparseLevel_offsetZ

      public CUarrayMapInfo subresource_sparseLevel_offsetZ(int value)
      Sets the specified value to the offsetZ field.
    • subresource_sparseLevel_extentWidth

      public CUarrayMapInfo subresource_sparseLevel_extentWidth(int value)
      Sets the specified value to the extentWidth field.
    • subresource_sparseLevel_extentHeight

      public CUarrayMapInfo subresource_sparseLevel_extentHeight(int value)
      Sets the specified value to the extentHeight field.
    • subresource_sparseLevel_extentDepth

      public CUarrayMapInfo subresource_sparseLevel_extentDepth(int value)
      Sets the specified value to the extentDepth field.
    • subresource_miptail_layer

      public CUarrayMapInfo subresource_miptail_layer(int value)
      Sets the specified value to the layer field.
    • subresource_miptail_offset

      public CUarrayMapInfo subresource_miptail_offset(long value)
      Sets the specified value to the offset field.
    • subresource_miptail_size

      public CUarrayMapInfo subresource_miptail_size(long value)
      Sets the specified value to the size field.
    • memOperationType

      public CUarrayMapInfo memOperationType(int value)
      Sets the specified value to the memOperationType field.
    • memHandleType

      public CUarrayMapInfo memHandleType(int value)
      Sets the specified value to the memHandleType field.
    • memHandle_memHandle

      public CUarrayMapInfo memHandle_memHandle(long value)
      Sets the specified value to the memHandle field.
    • offset

      public CUarrayMapInfo offset(long value)
      Sets the specified value to the offset field.
    • deviceBitMask

      public CUarrayMapInfo deviceBitMask(int value)
      Sets the specified value to the deviceBitMask field.
    • flags

      public CUarrayMapInfo flags(int value)
      Sets the specified value to the flags field.
    • reserved

      public CUarrayMapInfo reserved(IntBuffer value)
      Copies the specified IntBuffer to the reserved field.
    • reserved

      public CUarrayMapInfo reserved(int index, int value)
      Sets the specified value at the specified index of the reserved field.
    • set

      public CUarrayMapInfo set(CUarrayMapInfo src)
      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static CUarrayMapInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new CUarrayMapInfo.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
    • nresourceType

      public static int nresourceType(long struct)
      Unsafe version of resourceType().
    • nresource_mipmap

      public static long nresource_mipmap(long struct)
      Unsafe version of resource_mipmap().
    • nresource_array

      public static long nresource_array(long struct)
      Unsafe version of resource_array().
    • nsubresourceType

      public static int nsubresourceType(long struct)
      Unsafe version of subresourceType().
    • nsubresource_sparseLevel_level

      public static int nsubresource_sparseLevel_level(long struct)
    • nsubresource_sparseLevel_layer

      public static int nsubresource_sparseLevel_layer(long struct)
    • nsubresource_sparseLevel_offsetX

      public static int nsubresource_sparseLevel_offsetX(long struct)
    • nsubresource_sparseLevel_offsetY

      public static int nsubresource_sparseLevel_offsetY(long struct)
    • nsubresource_sparseLevel_offsetZ

      public static int nsubresource_sparseLevel_offsetZ(long struct)
    • nsubresource_sparseLevel_extentWidth

      public static int nsubresource_sparseLevel_extentWidth(long struct)
    • nsubresource_sparseLevel_extentHeight

      public static int nsubresource_sparseLevel_extentHeight(long struct)
    • nsubresource_sparseLevel_extentDepth

      public static int nsubresource_sparseLevel_extentDepth(long struct)
    • nsubresource_miptail_layer

      public static int nsubresource_miptail_layer(long struct)
      Unsafe version of subresource_miptail_layer().
    • nsubresource_miptail_offset

      public static long nsubresource_miptail_offset(long struct)
      Unsafe version of subresource_miptail_offset().
    • nsubresource_miptail_size

      public static long nsubresource_miptail_size(long struct)
      Unsafe version of subresource_miptail_size().
    • nmemOperationType

      public static int nmemOperationType(long struct)
      Unsafe version of memOperationType().
    • nmemHandleType

      public static int nmemHandleType(long struct)
      Unsafe version of memHandleType().
    • nmemHandle_memHandle

      public static long nmemHandle_memHandle(long struct)
      Unsafe version of memHandle_memHandle().
    • noffset

      public static long noffset(long struct)
      Unsafe version of offset().
    • ndeviceBitMask

      public static int ndeviceBitMask(long struct)
      Unsafe version of deviceBitMask().
    • nflags

      public static int nflags(long struct)
      Unsafe version of flags().
    • nreserved

      public static IntBuffer nreserved(long struct)
      Unsafe version of reserved().
    • nreserved

      public static int nreserved(long struct, int index)
      Unsafe version of reserved.
    • nresourceType

      public static void nresourceType(long struct, int value)
      Unsafe version of resourceType.
    • nresource_mipmap

      public static void nresource_mipmap(long struct, long value)
      Unsafe version of resource_mipmap.
    • nresource_array

      public static void nresource_array(long struct, long value)
      Unsafe version of resource_array.
    • nsubresourceType

      public static void nsubresourceType(long struct, int value)
      Unsafe version of subresourceType.
    • nsubresource_sparseLevel_level

      public static void nsubresource_sparseLevel_level(long struct, int value)
    • nsubresource_sparseLevel_layer

      public static void nsubresource_sparseLevel_layer(long struct, int value)
    • nsubresource_sparseLevel_offsetX

      public static void nsubresource_sparseLevel_offsetX(long struct, int value)
    • nsubresource_sparseLevel_offsetY

      public static void nsubresource_sparseLevel_offsetY(long struct, int value)
    • nsubresource_sparseLevel_offsetZ

      public static void nsubresource_sparseLevel_offsetZ(long struct, int value)
    • nsubresource_sparseLevel_extentWidth

      public static void nsubresource_sparseLevel_extentWidth(long struct, int value)
    • nsubresource_sparseLevel_extentHeight

      public static void nsubresource_sparseLevel_extentHeight(long struct, int value)
    • nsubresource_sparseLevel_extentDepth

      public static void nsubresource_sparseLevel_extentDepth(long struct, int value)
    • nsubresource_miptail_layer

      public static void nsubresource_miptail_layer(long struct, int value)
      Unsafe version of subresource_miptail_layer.
    • nsubresource_miptail_offset

      public static void nsubresource_miptail_offset(long struct, long value)
      Unsafe version of subresource_miptail_offset.
    • nsubresource_miptail_size

      public static void nsubresource_miptail_size(long struct, long value)
      Unsafe version of subresource_miptail_size.
    • nmemOperationType

      public static void nmemOperationType(long struct, int value)
      Unsafe version of memOperationType.
    • nmemHandleType

      public static void nmemHandleType(long struct, int value)
      Unsafe version of memHandleType.
    • nmemHandle_memHandle

      public static void nmemHandle_memHandle(long struct, long value)
      Unsafe version of memHandle_memHandle.
    • noffset

      public static void noffset(long struct, long value)
      Unsafe version of offset.
    • ndeviceBitMask

      public static void ndeviceBitMask(long struct, int value)
      Unsafe version of deviceBitMask.
    • nflags

      public static void nflags(long struct, int value)
      Unsafe version of flags.
    • nreserved

      public static void nreserved(long struct, IntBuffer value)
      Unsafe version of reserved.
    • nreserved

      public static void nreserved(long struct, int index, int value)
      Unsafe version of reserved.