Top Description Inners Fields Constructors Methods
org.lwjgl.cuda

public Class CUdevprop

extends Struct<CUdevprop>
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 CUdevprop {
    int maxThreadsPerBlock;
    int maxThreadsDim[3];
    int maxGridSize[3];
    int sharedMemPerBlock;
    int totalConstantMemory;
    int SIMDWidth;
    int memPitch;
    int regsPerBlock;
    int clockRate;
    int textureAlign;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
CUdevprop.Buffer

An array of CUdevprop structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
CLOCKRATE

The struct member offsets.

public static final int
MAXGRIDSIZE

The struct member offsets.

public static final int
MAXTHREADSDIM

The struct member offsets.

public static final int
MAXTHREADSPERBLOCK

The struct member offsets.

public static final int
MEMPITCH

The struct member offsets.

public static final int
REGSPERBLOCK

The struct member offsets.

public static final int
SHAREDMEMPERBLOCK

The struct member offsets.

public static final int
SIMDWIDTH

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
TEXTUREALIGN

The struct member offsets.

public static final int
TOTALCONSTANTMEMORY

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

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

public
CUdevprop(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public static CUdevprop
calloc()

Returns a new CUdevprop instance allocated with memCalloc.

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

Returns a new CUdevprop.Buffer instance allocated with memCalloc.

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

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

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

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

public static CUdevprop
callocStack()

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

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

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

Deprecated
Deprecated for removal in 3.4.0.
public int

Returns:

the value of the clockRate field.
clockRate
()

public CUdevprop
clockRate(int value)

Sets the specified value to the clockRate field.

protected CUdevprop
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 CUdevprop
create()

Returns a new CUdevprop instance allocated with BufferUtils.

public static CUdevprop
create(long address)

Returns a new CUdevprop instance for the specified memory address.

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

Returns a new CUdevprop.Buffer instance allocated with BufferUtils.

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

Create a CUdevprop.Buffer instance at the specified memory.

public static CUdevprop
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public static CUdevprop
malloc()

Returns a new CUdevprop instance allocated with memAlloc.

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

Returns a new CUdevprop.Buffer instance allocated with memAlloc.

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

Returns a new CUdevprop instance allocated on the specified MemoryStack.

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

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

public static CUdevprop
mallocStack()

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

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

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

Deprecated
Deprecated for removal in 3.4.0.
public IntBuffer

Returns:

a IntBuffer view of the maxGridSize field.
maxGridSize
()

public int

Returns:

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

public CUdevprop
maxGridSize(IntBuffer value)

Copies the specified IntBuffer to the maxGridSize field.

public CUdevprop
maxGridSize(int index, int value)

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

public IntBuffer

Returns:

a IntBuffer view of the maxThreadsDim field.
maxThreadsDim
()

public int

Returns:

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

public CUdevprop
maxThreadsDim(IntBuffer value)

Copies the specified IntBuffer to the maxThreadsDim field.

public CUdevprop
maxThreadsDim(int index, int value)

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

public int

Returns:

the value of the maxThreadsPerBlock field.
maxThreadsPerBlock
()

public CUdevprop
maxThreadsPerBlock(int value)

Sets the specified value to the maxThreadsPerBlock field.

public int

Returns:

the value of the memPitch field.
memPitch
()

public CUdevprop
memPitch(int value)

Sets the specified value to the memPitch field.

public static int
nclockRate(long struct)

Unsafe version of clockRate.

public static void
nclockRate(long struct, int value)

Unsafe version of clockRate.

public static IntBuffer
nmaxGridSize(long struct)

Unsafe version of maxGridSize.

public static int
nmaxGridSize(long struct, int index)

Unsafe version of maxGridSize.

public static void
nmaxGridSize(long struct, IntBuffer value)

Unsafe version of maxGridSize.

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

Unsafe version of maxGridSize.

public static IntBuffer
nmaxThreadsDim(long struct)

Unsafe version of maxThreadsDim.

public static int
nmaxThreadsDim(long struct, int index)

Unsafe version of maxThreadsDim.

public static void
nmaxThreadsDim(long struct, IntBuffer value)

Unsafe version of maxThreadsDim.

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

Unsafe version of maxThreadsDim.

public static int
nmaxThreadsPerBlock(long struct)

Unsafe version of maxThreadsPerBlock.

public static void
nmaxThreadsPerBlock(long struct, int value)

Unsafe version of maxThreadsPerBlock.

public static int
nmemPitch(long struct)

Unsafe version of memPitch.

public static void
nmemPitch(long struct, int value)

Unsafe version of memPitch.

public static int
nregsPerBlock(long struct)

Unsafe version of regsPerBlock.

public static void
nregsPerBlock(long struct, int value)

Unsafe version of regsPerBlock.

public static int
nsharedMemPerBlock(long struct)

Unsafe version of sharedMemPerBlock.

public static void
nsharedMemPerBlock(long struct, int value)

Unsafe version of sharedMemPerBlock.

public static int
nSIMDWidth(long struct)

Unsafe version of SIMDWidth.

public static void
nSIMDWidth(long struct, int value)

Unsafe version of SIMDWidth.

public static int
ntextureAlign(long struct)

Unsafe version of textureAlign.

public static void
ntextureAlign(long struct, int value)

Unsafe version of textureAlign.

public static int
ntotalConstantMemory(long struct)

Unsafe version of totalConstantMemory.

public static void
ntotalConstantMemory(long struct, int value)

Unsafe version of totalConstantMemory.

public int

Returns:

the value of the regsPerBlock field.
regsPerBlock
()

public CUdevprop
regsPerBlock(int value)

Sets the specified value to the regsPerBlock field.

public CUdevprop
set(int maxThreadsPerBlock, IntBuffer maxThreadsDim, IntBuffer maxGridSize, int sharedMemPerBlock, int totalConstantMemory, int SIMDWidth, int memPitch, int regsPerBlock, int clockRate, int textureAlign)

Initializes this struct with the specified values.

public CUdevprop

Returns:

this struct
set
(CUdevprop
the source struct
src
)

Copies the specified struct data to this struct.

public int

Returns:

the value of the sharedMemPerBlock field.
sharedMemPerBlock
()

public CUdevprop
sharedMemPerBlock(int value)

Sets the specified value to the sharedMemPerBlock field.

public int

Returns:

the value of the SIMDWidth field.
SIMDWidth
()

public CUdevprop
SIMDWidth(int value)

Sets the specified value to the SIMDWidth field.

public int
sizeof()

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

Returns sizeof(struct).
public int

Returns:

the value of the textureAlign field.
textureAlign
()

public CUdevprop
textureAlign(int value)

Sets the specified value to the textureAlign field.

public int

Returns:

the value of the totalConstantMemory field.
totalConstantMemory
()

public CUdevprop
totalConstantMemory(int value)

Sets the specified value to the totalConstantMemory field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate