public class CUDA_MEMSET_NODE_PARAMS
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
dst – Destination device pointerpitch – Pitch of destination device pointer. Unused if height is 1value – Value to be setelementSize – Size of each element in bytes. Must be 1, 2, or 4.width – Width in bytes, of the rowheight – Number of rows
struct CUDA_MEMSET_NODE_PARAMS {
CUdeviceptr dst;
size_t pitch;
unsigned int value;
unsigned int elementSize;
size_t width;
size_t height;
}| Modifier and Type | Class and Description |
|---|---|
static class |
CUDA_MEMSET_NODE_PARAMS.Buffer
An array of
CUDA_MEMSET_NODE_PARAMS structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DST
The struct member offsets.
|
static int |
ELEMENTSIZE
The struct member offsets.
|
static int |
HEIGHT
The struct member offsets.
|
static int |
PITCH
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
VALUE
The struct member offsets.
|
static int |
WIDTH
The struct member offsets.
|
| Constructor and Description |
|---|
CUDA_MEMSET_NODE_PARAMS(java.nio.ByteBuffer container)
Creates a
CUDA_MEMSET_NODE_PARAMS instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static CUDA_MEMSET_NODE_PARAMS |
calloc()
Returns a new
CUDA_MEMSET_NODE_PARAMS instance allocated with memCalloc. |
static CUDA_MEMSET_NODE_PARAMS.Buffer |
calloc(int capacity)
Returns a new
CUDA_MEMSET_NODE_PARAMS.Buffer instance allocated with memCalloc. |
static CUDA_MEMSET_NODE_PARAMS |
callocStack()
Returns a new
CUDA_MEMSET_NODE_PARAMS instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CUDA_MEMSET_NODE_PARAMS.Buffer |
callocStack(int capacity)
Returns a new
CUDA_MEMSET_NODE_PARAMS.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CUDA_MEMSET_NODE_PARAMS.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CUDA_MEMSET_NODE_PARAMS.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CUDA_MEMSET_NODE_PARAMS |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CUDA_MEMSET_NODE_PARAMS instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CUDA_MEMSET_NODE_PARAMS |
create()
Returns a new
CUDA_MEMSET_NODE_PARAMS instance allocated with BufferUtils. |
static CUDA_MEMSET_NODE_PARAMS.Buffer |
create(int capacity)
Returns a new
CUDA_MEMSET_NODE_PARAMS.Buffer instance allocated with BufferUtils. |
static CUDA_MEMSET_NODE_PARAMS |
create(long address)
Returns a new
CUDA_MEMSET_NODE_PARAMS instance for the specified memory address. |
static CUDA_MEMSET_NODE_PARAMS.Buffer |
create(long address,
int capacity)
Create a
CUDA_MEMSET_NODE_PARAMS.Buffer instance at the specified memory. |
static CUDA_MEMSET_NODE_PARAMS |
createSafe(long address)
|
static CUDA_MEMSET_NODE_PARAMS.Buffer |
createSafe(long address,
int capacity)
|
long |
dst()
Returns the value of the
dst field. |
CUDA_MEMSET_NODE_PARAMS |
dst(long value)
Sets the specified value to the
dst field. |
int |
elementSize()
Returns the value of the
elementSize field. |
CUDA_MEMSET_NODE_PARAMS |
elementSize(int value)
Sets the specified value to the
elementSize field. |
long |
height()
Returns the value of the
height field. |
CUDA_MEMSET_NODE_PARAMS |
height(long value)
Sets the specified value to the
height field. |
static CUDA_MEMSET_NODE_PARAMS |
malloc()
Returns a new
CUDA_MEMSET_NODE_PARAMS instance allocated with memAlloc. |
static CUDA_MEMSET_NODE_PARAMS.Buffer |
malloc(int capacity)
Returns a new
CUDA_MEMSET_NODE_PARAMS.Buffer instance allocated with memAlloc. |
static CUDA_MEMSET_NODE_PARAMS |
mallocStack()
Returns a new
CUDA_MEMSET_NODE_PARAMS instance allocated on the thread-local MemoryStack. |
static CUDA_MEMSET_NODE_PARAMS.Buffer |
mallocStack(int capacity)
Returns a new
CUDA_MEMSET_NODE_PARAMS.Buffer instance allocated on the thread-local MemoryStack. |
static CUDA_MEMSET_NODE_PARAMS.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CUDA_MEMSET_NODE_PARAMS.Buffer instance allocated on the specified MemoryStack. |
static CUDA_MEMSET_NODE_PARAMS |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CUDA_MEMSET_NODE_PARAMS instance allocated on the specified MemoryStack. |
static long |
ndst(long struct)
Unsafe version of
dst(). |
static void |
ndst(long struct,
long value)
Unsafe version of
dst. |
static int |
nelementSize(long struct)
Unsafe version of
elementSize(). |
static void |
nelementSize(long struct,
int value)
Unsafe version of
elementSize. |
static long |
nheight(long struct)
Unsafe version of
height(). |
static void |
nheight(long struct,
long value)
Unsafe version of
height. |
static long |
npitch(long struct)
Unsafe version of
pitch(). |
static void |
npitch(long struct,
long value)
Unsafe version of
pitch. |
static int |
nvalue(long struct)
Unsafe version of
value(). |
static void |
nvalue(long struct,
int value)
Unsafe version of
value. |
static long |
nwidth(long struct)
Unsafe version of
width(). |
static void |
nwidth(long struct,
long value)
Unsafe version of
width. |
long |
pitch()
Returns the value of the
pitch field. |
CUDA_MEMSET_NODE_PARAMS |
pitch(long value)
Sets the specified value to the
pitch field. |
CUDA_MEMSET_NODE_PARAMS |
set(CUDA_MEMSET_NODE_PARAMS src)
Copies the specified struct data to this struct.
|
CUDA_MEMSET_NODE_PARAMS |
set(long dst,
long pitch,
int value,
int elementSize,
long width,
long height)
Initializes this struct with the specified values.
|
int |
sizeof() |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
int |
value()
Returns the value of the
value field. |
CUDA_MEMSET_NODE_PARAMS |
value(int value)
Sets the specified value to the
value field. |
long |
width()
Returns the value of the
width field. |
CUDA_MEMSET_NODE_PARAMS |
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 DST
public static final int PITCH
public static final int VALUE
public static final int ELEMENTSIZE
public static final int WIDTH
public static final int HEIGHT
public CUDA_MEMSET_NODE_PARAMS(java.nio.ByteBuffer container)
CUDA_MEMSET_NODE_PARAMS 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 long dst()
dst field.public long pitch()
pitch field.public int value()
value field.public int elementSize()
elementSize field.public long width()
width field.public long height()
height field.public CUDA_MEMSET_NODE_PARAMS dst(long value)
dst field.public CUDA_MEMSET_NODE_PARAMS pitch(long value)
pitch field.public CUDA_MEMSET_NODE_PARAMS value(int value)
value field.public CUDA_MEMSET_NODE_PARAMS elementSize(int value)
elementSize field.public CUDA_MEMSET_NODE_PARAMS width(long value)
width field.public CUDA_MEMSET_NODE_PARAMS height(long value)
height field.public CUDA_MEMSET_NODE_PARAMS set(long dst, long pitch, int value, int elementSize, long width, long height)
public CUDA_MEMSET_NODE_PARAMS set(CUDA_MEMSET_NODE_PARAMS src)
src - the source structpublic static CUDA_MEMSET_NODE_PARAMS malloc()
CUDA_MEMSET_NODE_PARAMS instance allocated with memAlloc. The instance must be explicitly freed.public static CUDA_MEMSET_NODE_PARAMS calloc()
CUDA_MEMSET_NODE_PARAMS instance allocated with memCalloc. The instance must be explicitly freed.public static CUDA_MEMSET_NODE_PARAMS create()
CUDA_MEMSET_NODE_PARAMS instance allocated with BufferUtils.public static CUDA_MEMSET_NODE_PARAMS create(long address)
CUDA_MEMSET_NODE_PARAMS instance for the specified memory address.@Nullable public static CUDA_MEMSET_NODE_PARAMS createSafe(long address)
public static CUDA_MEMSET_NODE_PARAMS.Buffer malloc(int capacity)
CUDA_MEMSET_NODE_PARAMS.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CUDA_MEMSET_NODE_PARAMS.Buffer calloc(int capacity)
CUDA_MEMSET_NODE_PARAMS.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CUDA_MEMSET_NODE_PARAMS.Buffer create(int capacity)
CUDA_MEMSET_NODE_PARAMS.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static CUDA_MEMSET_NODE_PARAMS.Buffer create(long address, int capacity)
CUDA_MEMSET_NODE_PARAMS.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static CUDA_MEMSET_NODE_PARAMS.Buffer createSafe(long address, int capacity)
public static CUDA_MEMSET_NODE_PARAMS mallocStack()
CUDA_MEMSET_NODE_PARAMS instance allocated on the thread-local MemoryStack.public static CUDA_MEMSET_NODE_PARAMS callocStack()
CUDA_MEMSET_NODE_PARAMS instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static CUDA_MEMSET_NODE_PARAMS mallocStack(org.lwjgl.system.MemoryStack stack)
CUDA_MEMSET_NODE_PARAMS instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static CUDA_MEMSET_NODE_PARAMS callocStack(org.lwjgl.system.MemoryStack stack)
CUDA_MEMSET_NODE_PARAMS instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static CUDA_MEMSET_NODE_PARAMS.Buffer mallocStack(int capacity)
CUDA_MEMSET_NODE_PARAMS.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static CUDA_MEMSET_NODE_PARAMS.Buffer callocStack(int capacity)
CUDA_MEMSET_NODE_PARAMS.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static CUDA_MEMSET_NODE_PARAMS.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CUDA_MEMSET_NODE_PARAMS.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static CUDA_MEMSET_NODE_PARAMS.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CUDA_MEMSET_NODE_PARAMS.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 long ndst(long struct)
dst().public static long npitch(long struct)
pitch().public static int nvalue(long struct)
value().public static int nelementSize(long struct)
elementSize().public static long nwidth(long struct)
width().public static long nheight(long struct)
height().public static void ndst(long struct,
long value)
dst.public static void npitch(long struct,
long value)
pitch.public static void nvalue(long struct,
int value)
value.public static void nelementSize(long struct,
int value)
elementSize.public static void nwidth(long struct,
long value)
width.public static void nheight(long struct,
long value)
height.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.