public class CUDA_RESOURCE_VIEW_DESC
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
format – Resource view formatwidth – Width of the resource viewheight – Height of the resource viewdepth – Depth of the resource viewfirstMipmapLevel – First defined mipmap levellastMipmapLevel – Last defined mipmap levelfirstLayer – First layer indexlastLayer – Last layer index
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];
}| Modifier and Type | Class and Description |
|---|---|
static class |
CUDA_RESOURCE_VIEW_DESC.Buffer
An array of
CUDA_RESOURCE_VIEW_DESC structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DEPTH
The struct member offsets.
|
static int |
FIRSTLAYER
The struct member offsets.
|
static int |
FIRSTMIPMAPLEVEL
The struct member offsets.
|
static int |
FORMAT
The struct member offsets.
|
static int |
HEIGHT
The struct member offsets.
|
static int |
LASTLAYER
The struct member offsets.
|
static int |
LASTMIPMAPLEVEL
The struct member offsets.
|
static int |
RESERVED
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
WIDTH
The struct member offsets.
|
| Constructor and Description |
|---|
CUDA_RESOURCE_VIEW_DESC(java.nio.ByteBuffer container)
Creates a
CUDA_RESOURCE_VIEW_DESC instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static CUDA_RESOURCE_VIEW_DESC |
calloc()
Returns a new
CUDA_RESOURCE_VIEW_DESC instance allocated with memCalloc. |
static CUDA_RESOURCE_VIEW_DESC.Buffer |
calloc(int capacity)
Returns a new
CUDA_RESOURCE_VIEW_DESC.Buffer instance allocated with memCalloc. |
static CUDA_RESOURCE_VIEW_DESC |
callocStack()
Returns a new
CUDA_RESOURCE_VIEW_DESC instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CUDA_RESOURCE_VIEW_DESC.Buffer |
callocStack(int capacity)
Returns a new
CUDA_RESOURCE_VIEW_DESC.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CUDA_RESOURCE_VIEW_DESC.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CUDA_RESOURCE_VIEW_DESC.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CUDA_RESOURCE_VIEW_DESC |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CUDA_RESOURCE_VIEW_DESC instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CUDA_RESOURCE_VIEW_DESC |
create()
Returns a new
CUDA_RESOURCE_VIEW_DESC instance allocated with BufferUtils. |
static CUDA_RESOURCE_VIEW_DESC.Buffer |
create(int capacity)
Returns a new
CUDA_RESOURCE_VIEW_DESC.Buffer instance allocated with BufferUtils. |
static CUDA_RESOURCE_VIEW_DESC |
create(long address)
Returns a new
CUDA_RESOURCE_VIEW_DESC instance for the specified memory address. |
static CUDA_RESOURCE_VIEW_DESC.Buffer |
create(long address,
int capacity)
Create a
CUDA_RESOURCE_VIEW_DESC.Buffer instance at the specified memory. |
static CUDA_RESOURCE_VIEW_DESC |
createSafe(long address)
|
static CUDA_RESOURCE_VIEW_DESC.Buffer |
createSafe(long address,
int capacity)
|
long |
depth()
Returns the value of the
depth field. |
CUDA_RESOURCE_VIEW_DESC |
depth(long value)
Sets the specified value to the
depth field. |
int |
firstLayer()
Returns the value of the
firstLayer field. |
CUDA_RESOURCE_VIEW_DESC |
firstLayer(int value)
Sets the specified value to the
firstLayer field. |
int |
firstMipmapLevel()
Returns the value of the
firstMipmapLevel field. |
CUDA_RESOURCE_VIEW_DESC |
firstMipmapLevel(int value)
Sets the specified value to the
firstMipmapLevel field. |
int |
format()
Returns the value of the
format field. |
CUDA_RESOURCE_VIEW_DESC |
format(int value)
Sets the specified value to the
format field. |
long |
height()
Returns the value of the
height field. |
CUDA_RESOURCE_VIEW_DESC |
height(long value)
Sets the specified value to the
height field. |
int |
lastLayer()
Returns the value of the
lastLayer field. |
CUDA_RESOURCE_VIEW_DESC |
lastLayer(int value)
Sets the specified value to the
lastLayer field. |
int |
lastMipmapLevel()
Returns the value of the
lastMipmapLevel field. |
CUDA_RESOURCE_VIEW_DESC |
lastMipmapLevel(int value)
Sets the specified value to the
lastMipmapLevel field. |
static CUDA_RESOURCE_VIEW_DESC |
malloc()
Returns a new
CUDA_RESOURCE_VIEW_DESC instance allocated with memAlloc. |
static CUDA_RESOURCE_VIEW_DESC.Buffer |
malloc(int capacity)
Returns a new
CUDA_RESOURCE_VIEW_DESC.Buffer instance allocated with memAlloc. |
static CUDA_RESOURCE_VIEW_DESC |
mallocStack()
Returns a new
CUDA_RESOURCE_VIEW_DESC instance allocated on the thread-local MemoryStack. |
static CUDA_RESOURCE_VIEW_DESC.Buffer |
mallocStack(int capacity)
Returns a new
CUDA_RESOURCE_VIEW_DESC.Buffer instance allocated on the thread-local MemoryStack. |
static CUDA_RESOURCE_VIEW_DESC.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CUDA_RESOURCE_VIEW_DESC.Buffer instance allocated on the specified MemoryStack. |
static CUDA_RESOURCE_VIEW_DESC |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CUDA_RESOURCE_VIEW_DESC instance allocated on the specified MemoryStack. |
static long |
ndepth(long struct)
Unsafe version of
depth(). |
static void |
ndepth(long struct,
long value)
Unsafe version of
depth. |
static int |
nfirstLayer(long struct)
Unsafe version of
firstLayer(). |
static void |
nfirstLayer(long struct,
int value)
Unsafe version of
firstLayer. |
static int |
nfirstMipmapLevel(long struct)
Unsafe version of
firstMipmapLevel(). |
static void |
nfirstMipmapLevel(long struct,
int value)
Unsafe version of
firstMipmapLevel. |
static int |
nformat(long struct)
Unsafe version of
format(). |
static void |
nformat(long struct,
int value)
Unsafe version of
format. |
static long |
nheight(long struct)
Unsafe version of
height(). |
static void |
nheight(long struct,
long value)
Unsafe version of
height. |
static int |
nlastLayer(long struct)
Unsafe version of
lastLayer(). |
static void |
nlastLayer(long struct,
int value)
Unsafe version of
lastLayer. |
static int |
nlastMipmapLevel(long struct)
Unsafe version of
lastMipmapLevel(). |
static void |
nlastMipmapLevel(long struct,
int value)
Unsafe version of
lastMipmapLevel. |
static java.nio.IntBuffer |
nreserved(long struct)
Unsafe version of
reserved(). |
static int |
nreserved(long struct,
int index)
Unsafe version of
reserved. |
static void |
nreserved(long struct,
java.nio.IntBuffer value)
Unsafe version of
reserved. |
static void |
nreserved(long struct,
int index,
int value)
Unsafe version of
reserved. |
static long |
nwidth(long struct)
Unsafe version of
width(). |
static void |
nwidth(long struct,
long value)
Unsafe version of
width. |
java.nio.IntBuffer |
reserved()
Returns a
IntBuffer view of the reserved field. |
int |
reserved(int index)
Returns the value at the specified index of the
reserved field. |
CUDA_RESOURCE_VIEW_DESC |
reserved(java.nio.IntBuffer value)
Copies the specified
IntBuffer to the reserved field. |
CUDA_RESOURCE_VIEW_DESC |
reserved(int index,
int value)
Sets the specified value at the specified index of the
reserved field. |
CUDA_RESOURCE_VIEW_DESC |
set(CUDA_RESOURCE_VIEW_DESC src)
Copies the specified struct data to this struct.
|
CUDA_RESOURCE_VIEW_DESC |
set(int format,
long width,
long height,
long depth,
int firstMipmapLevel,
int lastMipmapLevel,
int firstLayer,
int lastLayer,
java.nio.IntBuffer reserved)
Initializes this struct with the specified values.
|
int |
sizeof() |
long |
width()
Returns the value of the
width field. |
CUDA_RESOURCE_VIEW_DESC |
width(long value)
Sets the specified value to the
width field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int FORMAT
public static final int WIDTH
public static final int HEIGHT
public static final int DEPTH
public static final int FIRSTMIPMAPLEVEL
public static final int LASTMIPMAPLEVEL
public static final int FIRSTLAYER
public static final int LASTLAYER
public static final int RESERVED
public CUDA_RESOURCE_VIEW_DESC(java.nio.ByteBuffer container)
CUDA_RESOURCE_VIEW_DESC 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int format()
format field.public long width()
width field.public long height()
height field.public long depth()
depth field.public int firstMipmapLevel()
firstMipmapLevel field.public int lastMipmapLevel()
lastMipmapLevel field.public int firstLayer()
firstLayer field.public int lastLayer()
lastLayer field.public java.nio.IntBuffer reserved()
IntBuffer view of the reserved field.public int reserved(int index)
reserved field.public CUDA_RESOURCE_VIEW_DESC format(int value)
format field.public CUDA_RESOURCE_VIEW_DESC width(long value)
width field.public CUDA_RESOURCE_VIEW_DESC height(long value)
height field.public CUDA_RESOURCE_VIEW_DESC depth(long value)
depth field.public CUDA_RESOURCE_VIEW_DESC firstMipmapLevel(int value)
firstMipmapLevel field.public CUDA_RESOURCE_VIEW_DESC lastMipmapLevel(int value)
lastMipmapLevel field.public CUDA_RESOURCE_VIEW_DESC firstLayer(int value)
firstLayer field.public CUDA_RESOURCE_VIEW_DESC lastLayer(int value)
lastLayer field.public CUDA_RESOURCE_VIEW_DESC reserved(java.nio.IntBuffer value)
IntBuffer to the reserved field.public CUDA_RESOURCE_VIEW_DESC reserved(int index, int value)
reserved field.public CUDA_RESOURCE_VIEW_DESC set(int format, long width, long height, long depth, int firstMipmapLevel, int lastMipmapLevel, int firstLayer, int lastLayer, java.nio.IntBuffer reserved)
public CUDA_RESOURCE_VIEW_DESC set(CUDA_RESOURCE_VIEW_DESC src)
src - the source structpublic static CUDA_RESOURCE_VIEW_DESC malloc()
CUDA_RESOURCE_VIEW_DESC instance allocated with memAlloc. The instance must be explicitly freed.public static CUDA_RESOURCE_VIEW_DESC calloc()
CUDA_RESOURCE_VIEW_DESC instance allocated with memCalloc. The instance must be explicitly freed.public static CUDA_RESOURCE_VIEW_DESC create()
CUDA_RESOURCE_VIEW_DESC instance allocated with BufferUtils.public static CUDA_RESOURCE_VIEW_DESC create(long address)
CUDA_RESOURCE_VIEW_DESC instance for the specified memory address.@Nullable public static CUDA_RESOURCE_VIEW_DESC createSafe(long address)
public static CUDA_RESOURCE_VIEW_DESC.Buffer malloc(int capacity)
CUDA_RESOURCE_VIEW_DESC.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CUDA_RESOURCE_VIEW_DESC.Buffer calloc(int capacity)
CUDA_RESOURCE_VIEW_DESC.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CUDA_RESOURCE_VIEW_DESC.Buffer create(int capacity)
CUDA_RESOURCE_VIEW_DESC.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static CUDA_RESOURCE_VIEW_DESC.Buffer create(long address, int capacity)
CUDA_RESOURCE_VIEW_DESC.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static CUDA_RESOURCE_VIEW_DESC.Buffer createSafe(long address, int capacity)
public static CUDA_RESOURCE_VIEW_DESC mallocStack()
CUDA_RESOURCE_VIEW_DESC instance allocated on the thread-local MemoryStack.public static CUDA_RESOURCE_VIEW_DESC callocStack()
CUDA_RESOURCE_VIEW_DESC instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static CUDA_RESOURCE_VIEW_DESC mallocStack(org.lwjgl.system.MemoryStack stack)
CUDA_RESOURCE_VIEW_DESC instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static CUDA_RESOURCE_VIEW_DESC callocStack(org.lwjgl.system.MemoryStack stack)
CUDA_RESOURCE_VIEW_DESC instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static CUDA_RESOURCE_VIEW_DESC.Buffer mallocStack(int capacity)
CUDA_RESOURCE_VIEW_DESC.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static CUDA_RESOURCE_VIEW_DESC.Buffer callocStack(int capacity)
CUDA_RESOURCE_VIEW_DESC.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static CUDA_RESOURCE_VIEW_DESC.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CUDA_RESOURCE_VIEW_DESC.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static CUDA_RESOURCE_VIEW_DESC.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CUDA_RESOURCE_VIEW_DESC.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nformat(long struct)
format().public static long nwidth(long struct)
width().public static long nheight(long struct)
height().public static long ndepth(long struct)
depth().public static int nfirstMipmapLevel(long struct)
firstMipmapLevel().public static int nlastMipmapLevel(long struct)
lastMipmapLevel().public static int nfirstLayer(long struct)
firstLayer().public static int nlastLayer(long struct)
lastLayer().public static java.nio.IntBuffer nreserved(long struct)
reserved().public static int nreserved(long struct,
int index)
reserved.public static void nformat(long struct,
int value)
format.public static void nwidth(long struct,
long value)
width.public static void nheight(long struct,
long value)
height.public static void ndepth(long struct,
long value)
depth.public static void nfirstMipmapLevel(long struct,
int value)
firstMipmapLevel.public static void nlastMipmapLevel(long struct,
int value)
lastMipmapLevel.public static void nfirstLayer(long struct,
int value)
firstLayer.public static void nlastLayer(long struct,
int value)
lastLayer.public static void nreserved(long struct,
java.nio.IntBuffer value)
reserved.public static void nreserved(long struct,
int index,
int value)
reserved.Copyright LWJGL. All Rights Reserved. License terms.