Top Description Inners Fields Constructors Methods
org.lwjgl.cuda

public Class CUarrayMapInfo

extends Struct<CUarrayMapInfo>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

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];
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
DEVICEBITMASK

The struct member offsets.

public static final int
FLAGS

The struct member offsets.

public static final int
MEMHANDLE

The struct member offsets.

public static final int
MEMHANDLE_MEMHANDLE

The struct member offsets.

public static final int
MEMHANDLETYPE

The struct member offsets.

public static final int
MEMOPERATIONTYPE

The struct member offsets.

public static final int
OFFSET

The struct member offsets.

public static final int
RESERVED

The struct member offsets.

public static final int
RESOURCE

The struct member offsets.

public static final int
RESOURCE_ARRAY

The struct member offsets.

public static final int
RESOURCE_MIPMAP

The struct member offsets.

public static final int
RESOURCETYPE

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
SUBRESOURCE

The struct member offsets.

public static final int
SUBRESOURCE_MIPTAIL

The struct member offsets.

public static final int
SUBRESOURCE_MIPTAIL_LAYER

The struct member offsets.

public static final int
SUBRESOURCE_MIPTAIL_OFFSET

The struct member offsets.

public static final int
SUBRESOURCE_MIPTAIL_SIZE

The struct member offsets.

public static final int
SUBRESOURCE_SPARSELEVEL

The struct member offsets.

public static final int
SUBRESOURCE_SPARSELEVEL_EXTENTDEPTH

The struct member offsets.

public static final int
SUBRESOURCE_SPARSELEVEL_EXTENTHEIGHT

The struct member offsets.

public static final int
SUBRESOURCE_SPARSELEVEL_EXTENTWIDTH

The struct member offsets.

public static final int
SUBRESOURCE_SPARSELEVEL_LAYER

The struct member offsets.

public static final int
SUBRESOURCE_SPARSELEVEL_LEVEL

The struct member offsets.

public static final int
SUBRESOURCE_SPARSELEVEL_OFFSETX

The struct member offsets.

public static final int
SUBRESOURCE_SPARSELEVEL_OFFSETY

The struct member offsets.

public static final int
SUBRESOURCE_SPARSELEVEL_OFFSETZ

The struct member offsets.

public static final int
SUBRESOURCETYPE

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
CUarrayMapInfo(long address, ByteBuffer container)

public
CUarrayMapInfo(ByteBuffer container)

Creates a CUarrayMapInfo instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static CUarrayMapInfo
calloc()

Returns a new CUarrayMapInfo instance allocated with memCalloc.

public static CUarrayMapInfo.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new CUarrayMapInfo.Buffer instance allocated with memCalloc.

public static CUarrayMapInfo
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new CUarrayMapInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static CUarrayMapInfo.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new CUarrayMapInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

protected CUarrayMapInfo
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static CUarrayMapInfo
create()

Returns a new CUarrayMapInfo instance allocated with BufferUtils.

public static CUarrayMapInfo
create(long address)

Returns a new CUarrayMapInfo instance for the specified memory address.

public static CUarrayMapInfo.Buffer
create(int
the buffer capacity
capacity
)

Returns a new CUarrayMapInfo.Buffer instance allocated with BufferUtils.

public static CUarrayMapInfo.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a CUarrayMapInfo.Buffer instance at the specified memory.

public static CUarrayMapInfo
createSafe(long address)

Like create, but returns null if address is NULL.

public static CUarrayMapInfo.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public int

Returns:

the value of the deviceBitMask field.
deviceBitMask
()

public CUarrayMapInfo
deviceBitMask(int value)

Sets the specified value to the deviceBitMask field.

public int

Returns:

the value of the flags field.
flags
()

public CUarrayMapInfo
flags(int value)

Sets the specified value to the flags field.

public static CUarrayMapInfo
malloc()

Returns a new CUarrayMapInfo instance allocated with memAlloc.

public static CUarrayMapInfo.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new CUarrayMapInfo.Buffer instance allocated with memAlloc.

public static CUarrayMapInfo
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new CUarrayMapInfo instance allocated on the specified MemoryStack.

public static CUarrayMapInfo.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new CUarrayMapInfo.Buffer instance allocated on the specified MemoryStack.

public long

Returns:

the value of the memHandle.memHandle field.
memHandle_memHandle
()

public CUarrayMapInfo
memHandle_memHandle(long value)

Sets the specified value to the memHandle field.

public int

Returns:

the value of the memHandleType field.
memHandleType
()

public CUarrayMapInfo
memHandleType(int value)

Sets the specified value to the memHandleType field.

public int

Returns:

the value of the memOperationType field.
memOperationType
()

public CUarrayMapInfo
memOperationType(int value)

Sets the specified value to the memOperationType field.

public static int
ndeviceBitMask(long struct)

Unsafe version of deviceBitMask.

public static void
ndeviceBitMask(long struct, int value)

Unsafe version of deviceBitMask.

public static int
nflags(long struct)

Unsafe version of flags.

public static void
nflags(long struct, int value)

Unsafe version of flags.

public static long
nmemHandle_memHandle(long struct)

Unsafe version of memHandle_memHandle.

public static void
nmemHandle_memHandle(long struct, long value)

Unsafe version of memHandle_memHandle.

public static int
nmemHandleType(long struct)

Unsafe version of memHandleType.

public static void
nmemHandleType(long struct, int value)

Unsafe version of memHandleType.

public static int
nmemOperationType(long struct)

Unsafe version of memOperationType.

public static void
nmemOperationType(long struct, int value)

Unsafe version of memOperationType.

public static long
noffset(long struct)

Unsafe version of offset.

public static void
noffset(long struct, long value)

Unsafe version of offset.

public static IntBuffer
nreserved(long struct)

Unsafe version of reserved.

public static int
nreserved(long struct, int index)

Unsafe version of reserved.

public static void
nreserved(long struct, IntBuffer value)

Unsafe version of reserved.

public static void
nreserved(long struct, int index, int value)

Unsafe version of reserved.

public static long
nresource_array(long struct)

Unsafe version of resource_array.

public static void
nresource_array(long struct, long value)

Unsafe version of resource_array.

public static long
nresource_mipmap(long struct)

Unsafe version of resource_mipmap.

public static void
nresource_mipmap(long struct, long value)

Unsafe version of resource_mipmap.

public static int
nresourceType(long struct)

Unsafe version of resourceType.

public static void
nresourceType(long struct, int value)

Unsafe version of resourceType.

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

Unsafe version of subresource_miptail_layer.

public static long
public static void
nsubresource_miptail_offset(long struct, long value)

Unsafe version of subresource_miptail_offset.

public static long
nsubresource_miptail_size(long struct)

Unsafe version of subresource_miptail_size.

public static void
nsubresource_miptail_size(long struct, long value)

Unsafe version of subresource_miptail_size.

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

Unsafe version of subresource_sparseLevel_layer.

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

Unsafe version of subresource_sparseLevel_level.

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

Unsafe version of subresource_sparseLevel_offsetX.

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

Unsafe version of subresource_sparseLevel_offsetY.

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

Unsafe version of subresource_sparseLevel_offsetZ.

public static int
nsubresourceType(long struct)

Unsafe version of subresourceType.

public static void
nsubresourceType(long struct, int value)

Unsafe version of subresourceType.

public long

Returns:

the value of the offset field.
offset
()

public CUarrayMapInfo
offset(long value)

Sets the specified value to the offset field.

public IntBuffer

Returns:

a IntBuffer view of the reserved field.
reserved
()

public int

Returns:

the value at the specified index of the reserved field.
reserved
(int index)

public CUarrayMapInfo
reserved(IntBuffer value)

Copies the specified IntBuffer to the reserved field.

public CUarrayMapInfo
reserved(int index, int value)

Sets the specified value at the specified index of the reserved field.

public long

Returns:

the value of the resource.array field.
resource_array
()

public CUarrayMapInfo
resource_array(long value)

Sets the specified value to the array field.

public long

Returns:

the value of the resource.mipmap field.
resource_mipmap
()

public CUarrayMapInfo
resource_mipmap(long value)

Sets the specified value to the mipmap field.

public int

Returns:

the value of the resourceType field.
resourceType
()

public CUarrayMapInfo
resourceType(int value)

Sets the specified value to the resourceType field.

public CUarrayMapInfo

Returns:

this struct
set
(CUarrayMapInfo
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public int

Returns:

the value of the subresource.miptail.layer field.
subresource_miptail_layer
()

public CUarrayMapInfo
subresource_miptail_layer(int value)

Sets the specified value to the layer field.

public long

Returns:

the value of the subresource.miptail.offset field.
subresource_miptail_offset
()

public CUarrayMapInfo
subresource_miptail_offset(long value)

Sets the specified value to the offset field.

public long

Returns:

the value of the subresource.miptail.size field.
subresource_miptail_size
()

public CUarrayMapInfo
subresource_miptail_size(long value)

Sets the specified value to the size field.

public int

Returns:

the value of the subresource.sparseLevel.extentDepth field.
subresource_sparseLevel_extentDepth
()

public CUarrayMapInfo
subresource_sparseLevel_extentDepth(int value)

Sets the specified value to the extentDepth field.

public int

Returns:

the value of the subresource.sparseLevel.extentHeight field.
subresource_sparseLevel_extentHeight
()

public CUarrayMapInfo
subresource_sparseLevel_extentHeight(int value)

Sets the specified value to the extentHeight field.

public int

Returns:

the value of the subresource.sparseLevel.extentWidth field.
subresource_sparseLevel_extentWidth
()

public CUarrayMapInfo
subresource_sparseLevel_extentWidth(int value)

Sets the specified value to the extentWidth field.

public int

Returns:

the value of the subresource.sparseLevel.layer field.
subresource_sparseLevel_layer
()

public CUarrayMapInfo
subresource_sparseLevel_layer(int value)

Sets the specified value to the layer field.

public int

Returns:

the value of the subresource.sparseLevel.level field.
subresource_sparseLevel_level
()

public CUarrayMapInfo
subresource_sparseLevel_level(int value)

Sets the specified value to the level field.

public int

Returns:

the value of the subresource.sparseLevel.offsetX field.
subresource_sparseLevel_offsetX
()

public CUarrayMapInfo
subresource_sparseLevel_offsetX(int value)

Sets the specified value to the offsetX field.

public int

Returns:

the value of the subresource.sparseLevel.offsetY field.
subresource_sparseLevel_offsetY
()

public CUarrayMapInfo
subresource_sparseLevel_offsetY(int value)

Sets the specified value to the offsetY field.

public int

Returns:

the value of the subresource.sparseLevel.offsetZ field.
subresource_sparseLevel_offsetZ
()

public CUarrayMapInfo
subresource_sparseLevel_offsetZ(int value)

Sets the specified value to the offsetZ field.

public int

Returns:

the value of the subresourceType field.
subresourceType
()

public CUarrayMapInfo
subresourceType(int value)

Sets the specified value to the subresourceType field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate