Package org.lwjgl.cuda
Class CUdevprop
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<CUdevprop>
org.lwjgl.cuda.CUdevprop
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CUdevprop
extends org.lwjgl.system.Struct<CUdevprop>
implements org.lwjgl.system.NativeResource
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 Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCUdevprop(ByteBuffer container) Creates aCUdevpropinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic CUdevpropcalloc()Returns a newCUdevpropinstance allocated withmemCalloc.static CUdevprop.Buffercalloc(int capacity) Returns a newCUdevprop.Bufferinstance allocated withmemCalloc.static CUdevprop.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUdevprop.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUdevpropcalloc(org.lwjgl.system.MemoryStack stack) Returns a newCUdevpropinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUdevpropDeprecated.static CUdevprop.BuffercallocStack(int capacity) Deprecated.static CUdevprop.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static CUdevpropcallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.intclockRate(int value) Sets the specified value to theclockRatefield.static CUdevpropcreate()Returns a newCUdevpropinstance allocated withBufferUtils.static CUdevprop.Buffercreate(int capacity) Returns a newCUdevprop.Bufferinstance allocated withBufferUtils.static CUdevpropcreate(long address) Returns a newCUdevpropinstance for the specified memory address.static CUdevprop.Buffercreate(long address, int capacity) Create aCUdevprop.Bufferinstance at the specified memory.static @Nullable CUdevpropcreateSafe(long address) static @Nullable CUdevprop.BuffercreateSafe(long address, int capacity) static CUdevpropmalloc()Returns a newCUdevpropinstance allocated withmemAlloc.static CUdevprop.Buffermalloc(int capacity) Returns a newCUdevprop.Bufferinstance allocated withmemAlloc.static CUdevprop.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUdevprop.Bufferinstance allocated on the specifiedMemoryStack.static CUdevpropmalloc(org.lwjgl.system.MemoryStack stack) Returns a newCUdevpropinstance allocated on the specifiedMemoryStack.static CUdevpropDeprecated.static CUdevprop.BuffermallocStack(int capacity) Deprecated.static CUdevprop.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static CUdevpropmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.intmaxGridSize(int index) maxGridSize(int index, int value) Sets the specified value at the specified index of themaxGridSizefield.maxGridSize(IntBuffer value) Copies the specifiedIntBufferto themaxGridSizefield.intmaxThreadsDim(int index) maxThreadsDim(int index, int value) Sets the specified value at the specified index of themaxThreadsDimfield.maxThreadsDim(IntBuffer value) Copies the specifiedIntBufferto themaxThreadsDimfield.intmaxThreadsPerBlock(int value) Sets the specified value to themaxThreadsPerBlockfield.intmemPitch()memPitch(int value) Sets the specified value to thememPitchfield.static intnclockRate(long struct) Unsafe version ofclockRate().static voidnclockRate(long struct, int value) Unsafe version ofclockRate.static IntBuffernmaxGridSize(long struct) Unsafe version ofmaxGridSize().static intnmaxGridSize(long struct, int index) Unsafe version ofmaxGridSize.static voidnmaxGridSize(long struct, int index, int value) Unsafe version ofmaxGridSize.static voidnmaxGridSize(long struct, IntBuffer value) Unsafe version ofmaxGridSize.static IntBuffernmaxThreadsDim(long struct) Unsafe version ofmaxThreadsDim().static intnmaxThreadsDim(long struct, int index) Unsafe version ofmaxThreadsDim.static voidnmaxThreadsDim(long struct, int index, int value) Unsafe version ofmaxThreadsDim.static voidnmaxThreadsDim(long struct, IntBuffer value) Unsafe version ofmaxThreadsDim.static intnmaxThreadsPerBlock(long struct) Unsafe version ofmaxThreadsPerBlock().static voidnmaxThreadsPerBlock(long struct, int value) Unsafe version ofmaxThreadsPerBlock.static intnmemPitch(long struct) Unsafe version ofmemPitch().static voidnmemPitch(long struct, int value) Unsafe version ofmemPitch.static intnregsPerBlock(long struct) Unsafe version ofregsPerBlock().static voidnregsPerBlock(long struct, int value) Unsafe version ofregsPerBlock.static intnsharedMemPerBlock(long struct) Unsafe version ofsharedMemPerBlock().static voidnsharedMemPerBlock(long struct, int value) Unsafe version ofsharedMemPerBlock.static intnSIMDWidth(long struct) Unsafe version ofSIMDWidth().static voidnSIMDWidth(long struct, int value) Unsafe version ofSIMDWidth.static intntextureAlign(long struct) Unsafe version oftextureAlign().static voidntextureAlign(long struct, int value) Unsafe version oftextureAlign.static intntotalConstantMemory(long struct) Unsafe version oftotalConstantMemory().static voidntotalConstantMemory(long struct, int value) Unsafe version oftotalConstantMemory.intregsPerBlock(int value) Sets the specified value to theregsPerBlockfield.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.Copies the specified struct data to this struct.intsharedMemPerBlock(int value) Sets the specified value to thesharedMemPerBlockfield.intSIMDWidth(int value) Sets the specified value to theSIMDWidthfield.intsizeof()inttextureAlign(int value) Sets the specified value to thetextureAlignfield.inttotalConstantMemory(int value) Sets the specified value to thetotalConstantMemoryfield.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
MAXTHREADSPERBLOCK
public static final int MAXTHREADSPERBLOCKThe struct member offsets. -
MAXTHREADSDIM
public static final int MAXTHREADSDIMThe struct member offsets. -
MAXGRIDSIZE
public static final int MAXGRIDSIZEThe struct member offsets. -
SHAREDMEMPERBLOCK
public static final int SHAREDMEMPERBLOCKThe struct member offsets. -
TOTALCONSTANTMEMORY
public static final int TOTALCONSTANTMEMORYThe struct member offsets. -
SIMDWIDTH
public static final int SIMDWIDTHThe struct member offsets. -
MEMPITCH
public static final int MEMPITCHThe struct member offsets. -
REGSPERBLOCK
public static final int REGSPERBLOCKThe struct member offsets. -
CLOCKRATE
public static final int CLOCKRATEThe struct member offsets. -
TEXTUREALIGN
public static final int TEXTUREALIGNThe struct member offsets.
-
-
Constructor Details
-
CUdevprop
Creates aCUdevpropinstance at the current position of the specifiedByteBuffercontainer. 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.
-
-
Method Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<CUdevprop>
-
maxThreadsPerBlock
public int maxThreadsPerBlock()- Returns:
- the value of the
maxThreadsPerBlockfield.
-
maxThreadsDim
- Returns:
- a
IntBufferview of themaxThreadsDimfield.
-
maxThreadsDim
public int maxThreadsDim(int index) - Returns:
- the value at the specified index of the
maxThreadsDimfield.
-
maxGridSize
- Returns:
- a
IntBufferview of themaxGridSizefield.
-
maxGridSize
public int maxGridSize(int index) - Returns:
- the value at the specified index of the
maxGridSizefield.
-
totalConstantMemory
public int totalConstantMemory()- Returns:
- the value of the
totalConstantMemoryfield.
-
SIMDWidth
public int SIMDWidth()- Returns:
- the value of the
SIMDWidthfield.
-
memPitch
public int memPitch()- Returns:
- the value of the
memPitchfield.
-
regsPerBlock
public int regsPerBlock()- Returns:
- the value of the
regsPerBlockfield.
-
clockRate
public int clockRate()- Returns:
- the value of the
clockRatefield.
-
textureAlign
public int textureAlign()- Returns:
- the value of the
textureAlignfield.
-
maxThreadsPerBlock
Sets the specified value to themaxThreadsPerBlockfield. -
maxThreadsDim
Copies the specifiedIntBufferto themaxThreadsDimfield. -
maxThreadsDim
Sets the specified value at the specified index of themaxThreadsDimfield. -
maxGridSize
Copies the specifiedIntBufferto themaxGridSizefield. -
maxGridSize
Sets the specified value at the specified index of themaxGridSizefield. -
totalConstantMemory
Sets the specified value to thetotalConstantMemoryfield. -
SIMDWidth
Sets the specified value to theSIMDWidthfield. -
memPitch
Sets the specified value to thememPitchfield. -
regsPerBlock
Sets the specified value to theregsPerBlockfield. -
clockRate
Sets the specified value to theclockRatefield. -
textureAlign
Sets the specified value to thetextureAlignfield. -
set
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. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newCUdevpropinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newCUdevpropinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newCUdevpropinstance allocated withBufferUtils. -
create
Returns a newCUdevpropinstance for the specified memory address. -
createSafe
-
malloc
Returns a newCUdevprop.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newCUdevprop.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newCUdevprop.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aCUdevprop.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
mallocStack
@Deprecated public static CUdevprop.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
@Deprecated public static CUdevprop.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newCUdevpropinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newCUdevpropinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newCUdevprop.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newCUdevprop.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nmaxThreadsPerBlock
public static int nmaxThreadsPerBlock(long struct) Unsafe version ofmaxThreadsPerBlock(). -
nmaxThreadsDim
Unsafe version ofmaxThreadsDim(). -
nmaxThreadsDim
public static int nmaxThreadsDim(long struct, int index) Unsafe version ofmaxThreadsDim. -
nmaxGridSize
Unsafe version ofmaxGridSize(). -
nmaxGridSize
public static int nmaxGridSize(long struct, int index) Unsafe version ofmaxGridSize. -
ntotalConstantMemory
public static int ntotalConstantMemory(long struct) Unsafe version oftotalConstantMemory(). -
nSIMDWidth
public static int nSIMDWidth(long struct) Unsafe version ofSIMDWidth(). -
nmemPitch
public static int nmemPitch(long struct) Unsafe version ofmemPitch(). -
nregsPerBlock
public static int nregsPerBlock(long struct) Unsafe version ofregsPerBlock(). -
nclockRate
public static int nclockRate(long struct) Unsafe version ofclockRate(). -
ntextureAlign
public static int ntextureAlign(long struct) Unsafe version oftextureAlign(). -
nmaxThreadsPerBlock
public static void nmaxThreadsPerBlock(long struct, int value) Unsafe version ofmaxThreadsPerBlock. -
nmaxThreadsDim
Unsafe version ofmaxThreadsDim. -
nmaxThreadsDim
public static void nmaxThreadsDim(long struct, int index, int value) Unsafe version ofmaxThreadsDim. -
nmaxGridSize
Unsafe version ofmaxGridSize. -
nmaxGridSize
public static void nmaxGridSize(long struct, int index, int value) Unsafe version ofmaxGridSize. -
ntotalConstantMemory
public static void ntotalConstantMemory(long struct, int value) Unsafe version oftotalConstantMemory. -
nSIMDWidth
public static void nSIMDWidth(long struct, int value) Unsafe version ofSIMDWidth. -
nmemPitch
public static void nmemPitch(long struct, int value) Unsafe version ofmemPitch. -
nregsPerBlock
public static void nregsPerBlock(long struct, int value) Unsafe version ofregsPerBlock. -
nclockRate
public static void nclockRate(long struct, int value) Unsafe version ofclockRate. -
ntextureAlign
public static void ntextureAlign(long struct, int value) Unsafe version oftextureAlign.
-