Top Description Inners Fields Constructors Methods
org.lwjgl.cuda

public Class CUDA_RESOURCE_VIEW_DESC

extends Struct<CUDA_RESOURCE_VIEW_DESC>
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 CUDA_RESOURCE_VIEW_DESC {
    CUresourceViewFormat format;
    size_t width;
    size_t height;
    size_t depth;
    unsigned int firstMipmapLevel;
    unsigned int lastMipmapLevel;
    unsigned int firstLayer;
    unsigned int lastLayer;
    unsigned int reserved[16];
}

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
DEPTH

The struct member offsets.

public static final int
FIRSTLAYER

The struct member offsets.

public static final int
FIRSTMIPMAPLEVEL

The struct member offsets.

public static final int
FORMAT

The struct member offsets.

public static final int
HEIGHT

The struct member offsets.

public static final int
LASTLAYER

The struct member offsets.

public static final int
LASTMIPMAPLEVEL

The struct member offsets.

public static final int
RESERVED

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
WIDTH

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

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

public
CUDA_RESOURCE_VIEW_DESC(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public static CUDA_RESOURCE_VIEW_DESC
calloc()

Returns a new CUDA_RESOURCE_VIEW_DESC instance allocated with memCalloc.

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

Returns a new CUDA_RESOURCE_VIEW_DESC.Buffer instance allocated with memCalloc.

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

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

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

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

public static CUDA_RESOURCE_VIEW_DESC
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static CUDA_RESOURCE_VIEW_DESC
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static CUDA_RESOURCE_VIEW_DESC.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static CUDA_RESOURCE_VIEW_DESC.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
protected CUDA_RESOURCE_VIEW_DESC
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 CUDA_RESOURCE_VIEW_DESC
create()

Returns a new CUDA_RESOURCE_VIEW_DESC instance allocated with BufferUtils.

public static CUDA_RESOURCE_VIEW_DESC
create(long address)

Returns a new CUDA_RESOURCE_VIEW_DESC instance for the specified memory address.

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

Returns a new CUDA_RESOURCE_VIEW_DESC.Buffer instance allocated with BufferUtils.

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

Create a CUDA_RESOURCE_VIEW_DESC.Buffer instance at the specified memory.

public static CUDA_RESOURCE_VIEW_DESC
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public long

Returns:

the value of the depth field.
depth
()

public CUDA_RESOURCE_VIEW_DESC
depth(long value)

Sets the specified value to the depth field.

public int

Returns:

the value of the firstLayer field.
firstLayer
()

public CUDA_RESOURCE_VIEW_DESC
firstLayer(int value)

Sets the specified value to the firstLayer field.

public int

Returns:

the value of the firstMipmapLevel field.
firstMipmapLevel
()

public CUDA_RESOURCE_VIEW_DESC
firstMipmapLevel(int value)

Sets the specified value to the firstMipmapLevel field.

public int

Returns:

the value of the format field.
format
()

public CUDA_RESOURCE_VIEW_DESC
format(int value)

Sets the specified value to the format field.

public long

Returns:

the value of the height field.
height
()

public CUDA_RESOURCE_VIEW_DESC
height(long value)

Sets the specified value to the height field.

public int

Returns:

the value of the lastLayer field.
lastLayer
()

public CUDA_RESOURCE_VIEW_DESC
lastLayer(int value)

Sets the specified value to the lastLayer field.

public int

Returns:

the value of the lastMipmapLevel field.
lastMipmapLevel
()

public CUDA_RESOURCE_VIEW_DESC
lastMipmapLevel(int value)

Sets the specified value to the lastMipmapLevel field.

public static CUDA_RESOURCE_VIEW_DESC
malloc()

Returns a new CUDA_RESOURCE_VIEW_DESC instance allocated with memAlloc.

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

Returns a new CUDA_RESOURCE_VIEW_DESC.Buffer instance allocated with memAlloc.

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

Returns a new CUDA_RESOURCE_VIEW_DESC instance allocated on the specified MemoryStack.

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

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

public static CUDA_RESOURCE_VIEW_DESC
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static CUDA_RESOURCE_VIEW_DESC
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static CUDA_RESOURCE_VIEW_DESC.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static CUDA_RESOURCE_VIEW_DESC.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static long
ndepth(long struct)

Unsafe version of depth.

public static void
ndepth(long struct, long value)

Unsafe version of depth.

public static int
nfirstLayer(long struct)

Unsafe version of firstLayer.

public static void
nfirstLayer(long struct, int value)

Unsafe version of firstLayer.

public static int
nfirstMipmapLevel(long struct)

Unsafe version of firstMipmapLevel.

public static void
nfirstMipmapLevel(long struct, int value)

Unsafe version of firstMipmapLevel.

public static int
nformat(long struct)

Unsafe version of format.

public static void
nformat(long struct, int value)

Unsafe version of format.

public static long
nheight(long struct)

Unsafe version of height.

public static void
nheight(long struct, long value)

Unsafe version of height.

public static int
nlastLayer(long struct)

Unsafe version of lastLayer.

public static void
nlastLayer(long struct, int value)

Unsafe version of lastLayer.

public static int
nlastMipmapLevel(long struct)

Unsafe version of lastMipmapLevel.

public static void
nlastMipmapLevel(long struct, int value)

Unsafe version of lastMipmapLevel.

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
nwidth(long struct)

Unsafe version of width.

public static void
nwidth(long struct, long value)

Unsafe version of width.

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 CUDA_RESOURCE_VIEW_DESC
reserved(IntBuffer value)

Copies the specified IntBuffer to the reserved field.

public CUDA_RESOURCE_VIEW_DESC
reserved(int index, int value)

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

public CUDA_RESOURCE_VIEW_DESC
set(int format, long width, long height, long depth, int firstMipmapLevel, int lastMipmapLevel, int firstLayer, int lastLayer, IntBuffer reserved)

Initializes this struct with the specified values.

public CUDA_RESOURCE_VIEW_DESC

Returns:

this struct
set
(CUDA_RESOURCE_VIEW_DESC
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 long

Returns:

the value of the width field.
width
()

public CUDA_RESOURCE_VIEW_DESC
width(long value)

Sets the specified value to the width field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate