public class CUdevprop
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
maxThreadsPerBlock – Maximum number of threads per blockmaxThreadsDim[3] – Maximum size of each dimension of a blockmaxGridSize[3] – Maximum size of each dimension of a gridsharedMemPerBlock – Shared memory available per block in bytestotalConstantMemory – Constant memory available on device in bytesSIMDWidth – Warp size in threadsmemPitch – Maximum pitch in bytes allowed by memory copiesregsPerBlock – 32-bit registers available per blockclockRate – Clock frequency in kilohertztextureAlign – Alignment requirement for textures
struct CUdevprop {
int maxThreadsPerBlock;
int maxThreadsDim[3];
int maxGridSize[3];
int sharedMemPerBlock;
int totalConstantMemory;
int SIMDWidth;
int memPitch;
int regsPerBlock;
int clockRate;
int textureAlign;
}| Modifier and Type | Class and Description |
|---|---|
static class |
CUdevprop.Buffer
An array of
CUdevprop structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
CLOCKRATE
The struct member offsets.
|
static int |
MAXGRIDSIZE
The struct member offsets.
|
static int |
MAXTHREADSDIM
The struct member offsets.
|
static int |
MAXTHREADSPERBLOCK
The struct member offsets.
|
static int |
MEMPITCH
The struct member offsets.
|
static int |
REGSPERBLOCK
The struct member offsets.
|
static int |
SHAREDMEMPERBLOCK
The struct member offsets.
|
static int |
SIMDWIDTH
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TEXTUREALIGN
The struct member offsets.
|
static int |
TOTALCONSTANTMEMORY
The struct member offsets.
|
| Constructor and Description |
|---|
CUdevprop(java.nio.ByteBuffer container)
Creates a
CUdevprop instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static CUdevprop |
calloc()
Returns a new
CUdevprop instance allocated with memCalloc. |
static CUdevprop.Buffer |
calloc(int capacity)
Returns a new
CUdevprop.Buffer instance allocated with memCalloc. |
static CUdevprop |
callocStack()
Returns a new
CUdevprop instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CUdevprop.Buffer |
callocStack(int capacity)
Returns a new
CUdevprop.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CUdevprop.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CUdevprop.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CUdevprop |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CUdevprop instance allocated on the specified MemoryStack and initializes all its bits to zero. |
int |
clockRate()
Returns the value of the
clockRate field. |
CUdevprop |
clockRate(int value)
Sets the specified value to the
clockRate field. |
static CUdevprop |
create()
Returns a new
CUdevprop instance allocated with BufferUtils. |
static CUdevprop.Buffer |
create(int capacity)
Returns a new
CUdevprop.Buffer instance allocated with BufferUtils. |
static CUdevprop |
create(long address)
Returns a new
CUdevprop instance for the specified memory address. |
static CUdevprop.Buffer |
create(long address,
int capacity)
Create a
CUdevprop.Buffer instance at the specified memory. |
static CUdevprop |
createSafe(long address)
|
static CUdevprop.Buffer |
createSafe(long address,
int capacity)
|
static CUdevprop |
malloc()
Returns a new
CUdevprop instance allocated with memAlloc. |
static CUdevprop.Buffer |
malloc(int capacity)
Returns a new
CUdevprop.Buffer instance allocated with memAlloc. |
static CUdevprop |
mallocStack()
Returns a new
CUdevprop instance allocated on the thread-local MemoryStack. |
static CUdevprop.Buffer |
mallocStack(int capacity)
Returns a new
CUdevprop.Buffer instance allocated on the thread-local MemoryStack. |
static CUdevprop.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CUdevprop.Buffer instance allocated on the specified MemoryStack. |
static CUdevprop |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CUdevprop instance allocated on the specified MemoryStack. |
java.nio.IntBuffer |
maxGridSize()
Returns a
IntBuffer view of the maxGridSize field. |
int |
maxGridSize(int index)
Returns the value at the specified index of the
maxGridSize field. |
CUdevprop |
maxGridSize(java.nio.IntBuffer value)
Copies the specified
IntBuffer to the maxGridSize field. |
CUdevprop |
maxGridSize(int index,
int value)
Sets the specified value at the specified index of the
maxGridSize field. |
java.nio.IntBuffer |
maxThreadsDim()
Returns a
IntBuffer view of the maxThreadsDim field. |
int |
maxThreadsDim(int index)
Returns the value at the specified index of the
maxThreadsDim field. |
CUdevprop |
maxThreadsDim(java.nio.IntBuffer value)
Copies the specified
IntBuffer to the maxThreadsDim field. |
CUdevprop |
maxThreadsDim(int index,
int value)
Sets the specified value at the specified index of the
maxThreadsDim field. |
int |
maxThreadsPerBlock()
Returns the value of the
maxThreadsPerBlock field. |
CUdevprop |
maxThreadsPerBlock(int value)
Sets the specified value to the
maxThreadsPerBlock field. |
int |
memPitch()
Returns the value of the
memPitch field. |
CUdevprop |
memPitch(int value)
Sets the specified value to the
memPitch field. |
static int |
nclockRate(long struct)
Unsafe version of
clockRate(). |
static void |
nclockRate(long struct,
int value)
Unsafe version of
clockRate. |
static java.nio.IntBuffer |
nmaxGridSize(long struct)
Unsafe version of
maxGridSize(). |
static int |
nmaxGridSize(long struct,
int index)
Unsafe version of
maxGridSize. |
static void |
nmaxGridSize(long struct,
java.nio.IntBuffer value)
Unsafe version of
maxGridSize. |
static void |
nmaxGridSize(long struct,
int index,
int value)
Unsafe version of
maxGridSize. |
static java.nio.IntBuffer |
nmaxThreadsDim(long struct)
Unsafe version of
maxThreadsDim(). |
static int |
nmaxThreadsDim(long struct,
int index)
Unsafe version of
maxThreadsDim. |
static void |
nmaxThreadsDim(long struct,
java.nio.IntBuffer value)
Unsafe version of
maxThreadsDim. |
static void |
nmaxThreadsDim(long struct,
int index,
int value)
Unsafe version of
maxThreadsDim. |
static int |
nmaxThreadsPerBlock(long struct)
Unsafe version of
maxThreadsPerBlock(). |
static void |
nmaxThreadsPerBlock(long struct,
int value)
Unsafe version of
maxThreadsPerBlock. |
static int |
nmemPitch(long struct)
Unsafe version of
memPitch(). |
static void |
nmemPitch(long struct,
int value)
Unsafe version of
memPitch. |
static int |
nregsPerBlock(long struct)
Unsafe version of
regsPerBlock(). |
static void |
nregsPerBlock(long struct,
int value)
Unsafe version of
regsPerBlock. |
static int |
nsharedMemPerBlock(long struct)
Unsafe version of
sharedMemPerBlock(). |
static void |
nsharedMemPerBlock(long struct,
int value)
Unsafe version of
sharedMemPerBlock. |
static int |
nSIMDWidth(long struct)
Unsafe version of
SIMDWidth(). |
static void |
nSIMDWidth(long struct,
int value)
Unsafe version of
SIMDWidth. |
static int |
ntextureAlign(long struct)
Unsafe version of
textureAlign(). |
static void |
ntextureAlign(long struct,
int value)
Unsafe version of
textureAlign. |
static int |
ntotalConstantMemory(long struct)
Unsafe version of
totalConstantMemory(). |
static void |
ntotalConstantMemory(long struct,
int value)
Unsafe version of
totalConstantMemory. |
int |
regsPerBlock()
Returns the value of the
regsPerBlock field. |
CUdevprop |
regsPerBlock(int value)
Sets the specified value to the
regsPerBlock field. |
CUdevprop |
set(CUdevprop src)
Copies the specified struct data to this struct.
|
CUdevprop |
set(int maxThreadsPerBlock,
java.nio.IntBuffer maxThreadsDim,
java.nio.IntBuffer maxGridSize,
int sharedMemPerBlock,
int totalConstantMemory,
int SIMDWidth,
int memPitch,
int regsPerBlock,
int clockRate,
int textureAlign)
Initializes this struct with the specified values.
|
int |
sharedMemPerBlock()
Returns the value of the
sharedMemPerBlock field. |
CUdevprop |
sharedMemPerBlock(int value)
Sets the specified value to the
sharedMemPerBlock field. |
int |
SIMDWidth()
Returns the value of the
SIMDWidth field. |
CUdevprop |
SIMDWidth(int value)
Sets the specified value to the
SIMDWidth field. |
int |
sizeof() |
int |
textureAlign()
Returns the value of the
textureAlign field. |
CUdevprop |
textureAlign(int value)
Sets the specified value to the
textureAlign field. |
int |
totalConstantMemory()
Returns the value of the
totalConstantMemory field. |
CUdevprop |
totalConstantMemory(int value)
Sets the specified value to the
totalConstantMemory field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int MAXTHREADSPERBLOCK
public static final int MAXTHREADSDIM
public static final int MAXGRIDSIZE
public static final int SHAREDMEMPERBLOCK
public static final int TOTALCONSTANTMEMORY
public static final int SIMDWIDTH
public static final int MEMPITCH
public static final int REGSPERBLOCK
public static final int CLOCKRATE
public static final int TEXTUREALIGN
public CUdevprop(java.nio.ByteBuffer container)
CUdevprop 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 maxThreadsPerBlock()
maxThreadsPerBlock field.public java.nio.IntBuffer maxThreadsDim()
IntBuffer view of the maxThreadsDim field.public int maxThreadsDim(int index)
maxThreadsDim field.public java.nio.IntBuffer maxGridSize()
IntBuffer view of the maxGridSize field.public int maxGridSize(int index)
maxGridSize field.public int sharedMemPerBlock()
sharedMemPerBlock field.public int totalConstantMemory()
totalConstantMemory field.public int SIMDWidth()
SIMDWidth field.public int memPitch()
memPitch field.public int regsPerBlock()
regsPerBlock field.public int clockRate()
clockRate field.public int textureAlign()
textureAlign field.public CUdevprop maxThreadsPerBlock(int value)
maxThreadsPerBlock field.public CUdevprop maxThreadsDim(java.nio.IntBuffer value)
IntBuffer to the maxThreadsDim field.public CUdevprop maxThreadsDim(int index, int value)
maxThreadsDim field.public CUdevprop maxGridSize(java.nio.IntBuffer value)
IntBuffer to the maxGridSize field.public CUdevprop maxGridSize(int index, int value)
maxGridSize field.public CUdevprop sharedMemPerBlock(int value)
sharedMemPerBlock field.public CUdevprop totalConstantMemory(int value)
totalConstantMemory field.public CUdevprop SIMDWidth(int value)
SIMDWidth field.public CUdevprop memPitch(int value)
memPitch field.public CUdevprop regsPerBlock(int value)
regsPerBlock field.public CUdevprop clockRate(int value)
clockRate field.public CUdevprop textureAlign(int value)
textureAlign field.public CUdevprop set(int maxThreadsPerBlock, java.nio.IntBuffer maxThreadsDim, java.nio.IntBuffer maxGridSize, int sharedMemPerBlock, int totalConstantMemory, int SIMDWidth, int memPitch, int regsPerBlock, int clockRate, int textureAlign)
public CUdevprop set(CUdevprop src)
src - the source structpublic static CUdevprop malloc()
CUdevprop instance allocated with memAlloc. The instance must be explicitly freed.public static CUdevprop calloc()
CUdevprop instance allocated with memCalloc. The instance must be explicitly freed.public static CUdevprop create()
CUdevprop instance allocated with BufferUtils.public static CUdevprop create(long address)
CUdevprop instance for the specified memory address.@Nullable public static CUdevprop createSafe(long address)
public static CUdevprop.Buffer malloc(int capacity)
CUdevprop.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CUdevprop.Buffer calloc(int capacity)
CUdevprop.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CUdevprop.Buffer create(int capacity)
CUdevprop.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static CUdevprop.Buffer create(long address, int capacity)
CUdevprop.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static CUdevprop.Buffer createSafe(long address, int capacity)
public static CUdevprop mallocStack()
CUdevprop instance allocated on the thread-local MemoryStack.public static CUdevprop callocStack()
CUdevprop instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static CUdevprop mallocStack(org.lwjgl.system.MemoryStack stack)
CUdevprop instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static CUdevprop callocStack(org.lwjgl.system.MemoryStack stack)
CUdevprop instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static CUdevprop.Buffer mallocStack(int capacity)
CUdevprop.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static CUdevprop.Buffer callocStack(int capacity)
CUdevprop.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static CUdevprop.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CUdevprop.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static CUdevprop.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CUdevprop.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 nmaxThreadsPerBlock(long struct)
maxThreadsPerBlock().public static java.nio.IntBuffer nmaxThreadsDim(long struct)
maxThreadsDim().public static int nmaxThreadsDim(long struct,
int index)
maxThreadsDim.public static java.nio.IntBuffer nmaxGridSize(long struct)
maxGridSize().public static int nmaxGridSize(long struct,
int index)
maxGridSize.public static int nsharedMemPerBlock(long struct)
sharedMemPerBlock().public static int ntotalConstantMemory(long struct)
totalConstantMemory().public static int nSIMDWidth(long struct)
SIMDWidth().public static int nmemPitch(long struct)
memPitch().public static int nregsPerBlock(long struct)
regsPerBlock().public static int nclockRate(long struct)
clockRate().public static int ntextureAlign(long struct)
textureAlign().public static void nmaxThreadsPerBlock(long struct,
int value)
maxThreadsPerBlock.public static void nmaxThreadsDim(long struct,
java.nio.IntBuffer value)
maxThreadsDim.public static void nmaxThreadsDim(long struct,
int index,
int value)
maxThreadsDim.public static void nmaxGridSize(long struct,
java.nio.IntBuffer value)
maxGridSize.public static void nmaxGridSize(long struct,
int index,
int value)
maxGridSize.public static void nsharedMemPerBlock(long struct,
int value)
sharedMemPerBlock.public static void ntotalConstantMemory(long struct,
int value)
totalConstantMemory.public static void nSIMDWidth(long struct,
int value)
SIMDWidth.public static void nmemPitch(long struct,
int value)
memPitch.public static void nregsPerBlock(long struct,
int value)
regsPerBlock.public static void nclockRate(long struct,
int value)
clockRate.public static void ntextureAlign(long struct,
int value)
textureAlign.Copyright LWJGL. All Rights Reserved. License terms.