Package org.lwjgl.cuda
Class CUstreamBatchMemOpParams
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<CUstreamBatchMemOpParams>
org.lwjgl.cuda.CUstreamBatchMemOpParams
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CUstreamBatchMemOpParams
extends org.lwjgl.system.Struct<CUstreamBatchMemOpParams>
implements org.lwjgl.system.NativeResource
Layout
union CUstreamBatchMemOpParams {
CUstreamBatchMemOpType operation;
struct {
CUstreamBatchMemOpType operation;
CUdeviceptr address;
union {
cuuint32_t value;
cuuint64_t value64;
};
unsigned int flags;
CUdeviceptr alias;
} waitValue;
struct {
CUstreamBatchMemOpType operation;
CUdeviceptr address;
union {
cuuint32_t value;
cuuint64_t value64;
};
unsigned int flags;
CUdeviceptr alias;
} writeValue;
struct {
CUstreamBatchMemOpType operation;
unsigned int flags;
} flushRemoteWrites;
struct {
CUstreamBatchMemOpType operation;
unsigned int flags;
} memoryBarrier;
cuuint64_t pad[6];
}-
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.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 member offsets.static final intThe struct member offsets.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
ConstructorsConstructorDescriptionCUstreamBatchMemOpParams(ByteBuffer container) Creates aCUstreamBatchMemOpParamsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic CUstreamBatchMemOpParamscalloc()Returns a newCUstreamBatchMemOpParamsinstance allocated withmemCalloc.calloc(int capacity) Returns a newCUstreamBatchMemOpParams.Bufferinstance allocated withmemCalloc.calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUstreamBatchMemOpParams.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUstreamBatchMemOpParamscalloc(org.lwjgl.system.MemoryStack stack) Returns a newCUstreamBatchMemOpParamsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUstreamBatchMemOpParamsDeprecated.callocStack(int capacity) Deprecated.callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static CUstreamBatchMemOpParamscallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static CUstreamBatchMemOpParamscreate()Returns a newCUstreamBatchMemOpParamsinstance allocated withBufferUtils.create(int capacity) Returns a newCUstreamBatchMemOpParams.Bufferinstance allocated withBufferUtils.static CUstreamBatchMemOpParamscreate(long address) Returns a newCUstreamBatchMemOpParamsinstance for the specified memory address.create(long address, int capacity) Create aCUstreamBatchMemOpParams.Bufferinstance at the specified memory.static @Nullable CUstreamBatchMemOpParamscreateSafe(long address) static @Nullable CUstreamBatchMemOpParams.BuffercreateSafe(long address, int capacity) intflushRemoteWrites_flags(int value) Sets the specified value to theflagsfield.intflushRemoteWrites_operation(int value) Sets the specified value to theoperationfield.static CUstreamBatchMemOpParamsmalloc()Returns a newCUstreamBatchMemOpParamsinstance allocated withmemAlloc.malloc(int capacity) Returns a newCUstreamBatchMemOpParams.Bufferinstance allocated withmemAlloc.malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUstreamBatchMemOpParams.Bufferinstance allocated on the specifiedMemoryStack.static CUstreamBatchMemOpParamsmalloc(org.lwjgl.system.MemoryStack stack) Returns a newCUstreamBatchMemOpParamsinstance allocated on the specifiedMemoryStack.static CUstreamBatchMemOpParamsDeprecated.mallocStack(int capacity) Deprecated.mallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static CUstreamBatchMemOpParamsmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.intmemoryBarrier_flags(int value) Sets the specified value to theflagsfield.intmemoryBarrier_operation(int value) Sets the specified value to theoperationfield.static intnflushRemoteWrites_flags(long struct) Unsafe version offlushRemoteWrites_flags().static voidnflushRemoteWrites_flags(long struct, int value) Unsafe version offlushRemoteWrites_flags.static intnflushRemoteWrites_operation(long struct) Unsafe version offlushRemoteWrites_operation().static voidnflushRemoteWrites_operation(long struct, int value) Unsafe version offlushRemoteWrites_operation.static intnmemoryBarrier_flags(long struct) Unsafe version ofmemoryBarrier_flags().static voidnmemoryBarrier_flags(long struct, int value) Unsafe version ofmemoryBarrier_flags.static intnmemoryBarrier_operation(long struct) Unsafe version ofmemoryBarrier_operation().static voidnmemoryBarrier_operation(long struct, int value) Unsafe version ofmemoryBarrier_operation.static intnoperation(long struct) Unsafe version ofoperation().static voidnoperation(long struct, int value) Unsafe version ofoperation.static LongBuffernpad(long struct) Unsafe version ofpad().static longnpad(long struct, int index) Unsafe version ofpad.static voidnpad(long struct, int index, long value) Unsafe version ofpad.static voidnpad(long struct, LongBuffer value) Unsafe version ofpad.static longnwaitValue_address(long struct) Unsafe version ofwaitValue_address().static voidnwaitValue_address(long struct, long value) Unsafe version ofwaitValue_address.static longnwaitValue_alias(long struct) Unsafe version ofwaitValue_alias().static voidnwaitValue_alias(long struct, long value) Unsafe version ofwaitValue_alias.static intnwaitValue_flags(long struct) Unsafe version ofwaitValue_flags().static voidnwaitValue_flags(long struct, int value) Unsafe version ofwaitValue_flags.static intnwaitValue_operation(long struct) Unsafe version ofwaitValue_operation().static voidnwaitValue_operation(long struct, int value) Unsafe version ofwaitValue_operation.static intnwaitValue_value(long struct) Unsafe version ofwaitValue_value().static voidnwaitValue_value(long struct, int value) Unsafe version ofwaitValue_value.static longnwaitValue_value64(long struct) Unsafe version ofwaitValue_value64().static voidnwaitValue_value64(long struct, long value) Unsafe version ofwaitValue_value64.static longnwriteValue_address(long struct) Unsafe version ofwriteValue_address().static voidnwriteValue_address(long struct, long value) Unsafe version ofwriteValue_address.static longnwriteValue_alias(long struct) Unsafe version ofwriteValue_alias().static voidnwriteValue_alias(long struct, long value) Unsafe version ofwriteValue_alias.static intnwriteValue_flags(long struct) Unsafe version ofwriteValue_flags().static voidnwriteValue_flags(long struct, int value) Unsafe version ofwriteValue_flags.static intnwriteValue_operation(long struct) Unsafe version ofwriteValue_operation().static voidnwriteValue_operation(long struct, int value) Unsafe version ofwriteValue_operation.static intnwriteValue_value(long struct) Unsafe version ofwriteValue_value().static voidnwriteValue_value(long struct, int value) Unsafe version ofwriteValue_value.static longnwriteValue_value64(long struct) Unsafe version ofwriteValue_value64().static voidnwriteValue_value64(long struct, long value) Unsafe version ofwriteValue_value64.intoperation(int value) Sets the specified value to theoperationfield.pad()longpad(int index) pad(int index, long value) Sets the specified value at the specified index of thepadfield.pad(LongBuffer value) Copies the specifiedLongBufferto thepadfield.Copies the specified struct data to this struct.intsizeof()longwaitValue_address(long value) Sets the specified value to theaddressfield.longwaitValue_alias(long value) Sets the specified value to thealiasfield.intwaitValue_flags(int value) Sets the specified value to theflagsfield.intwaitValue_operation(int value) Sets the specified value to theoperationfield.intwaitValue_value(int value) Sets the specified value to thevaluefield.longwaitValue_value64(long value) Sets the specified value to thevalue64field.longwriteValue_address(long value) Sets the specified value to theaddressfield.longwriteValue_alias(long value) Sets the specified value to thealiasfield.intwriteValue_flags(int value) Sets the specified value to theflagsfield.intwriteValue_operation(int value) Sets the specified value to theoperationfield.intwriteValue_value(int value) Sets the specified value to thevaluefield.longwriteValue_value64(long value) Sets the specified value to thevalue64field.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. -
OPERATION
public static final int OPERATIONThe struct member offsets. -
WAITVALUE
public static final int WAITVALUEThe struct member offsets. -
WAITVALUE_OPERATION
public static final int WAITVALUE_OPERATIONThe struct member offsets. -
WAITVALUE_ADDRESS
public static final int WAITVALUE_ADDRESSThe struct member offsets. -
WAITVALUE_VALUE
public static final int WAITVALUE_VALUEThe struct member offsets. -
WAITVALUE_VALUE64
public static final int WAITVALUE_VALUE64The struct member offsets. -
WAITVALUE_FLAGS
public static final int WAITVALUE_FLAGSThe struct member offsets. -
WAITVALUE_ALIAS
public static final int WAITVALUE_ALIASThe struct member offsets. -
WRITEVALUE
public static final int WRITEVALUEThe struct member offsets. -
WRITEVALUE_OPERATION
public static final int WRITEVALUE_OPERATIONThe struct member offsets. -
WRITEVALUE_ADDRESS
public static final int WRITEVALUE_ADDRESSThe struct member offsets. -
WRITEVALUE_VALUE
public static final int WRITEVALUE_VALUEThe struct member offsets. -
WRITEVALUE_VALUE64
public static final int WRITEVALUE_VALUE64The struct member offsets. -
WRITEVALUE_FLAGS
public static final int WRITEVALUE_FLAGSThe struct member offsets. -
WRITEVALUE_ALIAS
public static final int WRITEVALUE_ALIASThe struct member offsets. -
FLUSHREMOTEWRITES
public static final int FLUSHREMOTEWRITESThe struct member offsets. -
FLUSHREMOTEWRITES_OPERATION
public static final int FLUSHREMOTEWRITES_OPERATIONThe struct member offsets. -
FLUSHREMOTEWRITES_FLAGS
public static final int FLUSHREMOTEWRITES_FLAGSThe struct member offsets. -
MEMORYBARRIER
public static final int MEMORYBARRIERThe struct member offsets. -
MEMORYBARRIER_OPERATION
public static final int MEMORYBARRIER_OPERATIONThe struct member offsets. -
MEMORYBARRIER_FLAGS
public static final int MEMORYBARRIER_FLAGSThe struct member offsets. -
PAD
public static final int PADThe struct member offsets.
-
-
Constructor Details
-
CUstreamBatchMemOpParams
Creates aCUstreamBatchMemOpParamsinstance 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<CUstreamBatchMemOpParams>
-
operation
public int operation()- Returns:
- the value of the
operationfield.
-
waitValue_operation
public int waitValue_operation()- Returns:
- the value of the
waitValue.operationfield.
-
waitValue_address
public long waitValue_address()- Returns:
- the value of the
waitValue.addressfield.
-
waitValue_value
public int waitValue_value()- Returns:
- the value of the
waitValue.valuefield.
-
waitValue_value64
public long waitValue_value64()- Returns:
- the value of the
waitValue.value64field.
-
waitValue_flags
public int waitValue_flags()- Returns:
- the value of the
waitValue.flagsfield.
-
waitValue_alias
public long waitValue_alias()- Returns:
- the value of the
waitValue.aliasfield.
-
writeValue_operation
public int writeValue_operation()- Returns:
- the value of the
writeValue.operationfield.
-
writeValue_address
public long writeValue_address()- Returns:
- the value of the
writeValue.addressfield.
-
writeValue_value
public int writeValue_value()- Returns:
- the value of the
writeValue.valuefield.
-
writeValue_value64
public long writeValue_value64()- Returns:
- the value of the
writeValue.value64field.
-
writeValue_flags
public int writeValue_flags()- Returns:
- the value of the
writeValue.flagsfield.
-
writeValue_alias
public long writeValue_alias()- Returns:
- the value of the
writeValue.aliasfield.
-
flushRemoteWrites_operation
public int flushRemoteWrites_operation()- Returns:
- the value of the
flushRemoteWrites.operationfield.
-
flushRemoteWrites_flags
public int flushRemoteWrites_flags()- Returns:
- the value of the
flushRemoteWrites.flagsfield.
-
memoryBarrier_operation
public int memoryBarrier_operation()- Returns:
- the value of the
memoryBarrier.operationfield.
-
memoryBarrier_flags
public int memoryBarrier_flags()- Returns:
- the value of the
memoryBarrier.flagsfield.
-
pad
- Returns:
- a
LongBufferview of thepadfield.
-
pad
public long pad(int index) - Returns:
- the value at the specified index of the
padfield.
-
operation
Sets the specified value to theoperationfield. -
waitValue_operation
Sets the specified value to theoperationfield. -
waitValue_address
Sets the specified value to theaddressfield. -
waitValue_value
Sets the specified value to thevaluefield. -
waitValue_value64
Sets the specified value to thevalue64field. -
waitValue_flags
Sets the specified value to theflagsfield. -
waitValue_alias
Sets the specified value to thealiasfield. -
writeValue_operation
Sets the specified value to theoperationfield. -
writeValue_address
Sets the specified value to theaddressfield. -
writeValue_value
Sets the specified value to thevaluefield. -
writeValue_value64
Sets the specified value to thevalue64field. -
writeValue_flags
Sets the specified value to theflagsfield. -
writeValue_alias
Sets the specified value to thealiasfield. -
flushRemoteWrites_operation
Sets the specified value to theoperationfield. -
flushRemoteWrites_flags
Sets the specified value to theflagsfield. -
memoryBarrier_operation
Sets the specified value to theoperationfield. -
memoryBarrier_flags
Sets the specified value to theflagsfield. -
pad
Copies the specifiedLongBufferto thepadfield. -
pad
Sets the specified value at the specified index of thepadfield. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newCUstreamBatchMemOpParamsinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newCUstreamBatchMemOpParamsinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newCUstreamBatchMemOpParamsinstance allocated withBufferUtils. -
create
Returns a newCUstreamBatchMemOpParamsinstance for the specified memory address. -
createSafe
-
malloc
Returns a newCUstreamBatchMemOpParams.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newCUstreamBatchMemOpParams.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newCUstreamBatchMemOpParams.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aCUstreamBatchMemOpParams.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 CUstreamBatchMemOpParams.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 CUstreamBatchMemOpParams.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newCUstreamBatchMemOpParamsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newCUstreamBatchMemOpParamsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static CUstreamBatchMemOpParams.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUstreamBatchMemOpParams.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static CUstreamBatchMemOpParams.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUstreamBatchMemOpParams.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
noperation
public static int noperation(long struct) Unsafe version ofoperation(). -
nwaitValue_operation
public static int nwaitValue_operation(long struct) Unsafe version ofwaitValue_operation(). -
nwaitValue_address
public static long nwaitValue_address(long struct) Unsafe version ofwaitValue_address(). -
nwaitValue_value
public static int nwaitValue_value(long struct) Unsafe version ofwaitValue_value(). -
nwaitValue_value64
public static long nwaitValue_value64(long struct) Unsafe version ofwaitValue_value64(). -
nwaitValue_flags
public static int nwaitValue_flags(long struct) Unsafe version ofwaitValue_flags(). -
nwaitValue_alias
public static long nwaitValue_alias(long struct) Unsafe version ofwaitValue_alias(). -
nwriteValue_operation
public static int nwriteValue_operation(long struct) Unsafe version ofwriteValue_operation(). -
nwriteValue_address
public static long nwriteValue_address(long struct) Unsafe version ofwriteValue_address(). -
nwriteValue_value
public static int nwriteValue_value(long struct) Unsafe version ofwriteValue_value(). -
nwriteValue_value64
public static long nwriteValue_value64(long struct) Unsafe version ofwriteValue_value64(). -
nwriteValue_flags
public static int nwriteValue_flags(long struct) Unsafe version ofwriteValue_flags(). -
nwriteValue_alias
public static long nwriteValue_alias(long struct) Unsafe version ofwriteValue_alias(). -
nflushRemoteWrites_operation
public static int nflushRemoteWrites_operation(long struct) Unsafe version offlushRemoteWrites_operation(). -
nflushRemoteWrites_flags
public static int nflushRemoteWrites_flags(long struct) Unsafe version offlushRemoteWrites_flags(). -
nmemoryBarrier_operation
public static int nmemoryBarrier_operation(long struct) Unsafe version ofmemoryBarrier_operation(). -
nmemoryBarrier_flags
public static int nmemoryBarrier_flags(long struct) Unsafe version ofmemoryBarrier_flags(). -
npad
Unsafe version ofpad(). -
npad
public static long npad(long struct, int index) Unsafe version ofpad. -
noperation
public static void noperation(long struct, int value) Unsafe version ofoperation. -
nwaitValue_operation
public static void nwaitValue_operation(long struct, int value) Unsafe version ofwaitValue_operation. -
nwaitValue_address
public static void nwaitValue_address(long struct, long value) Unsafe version ofwaitValue_address. -
nwaitValue_value
public static void nwaitValue_value(long struct, int value) Unsafe version ofwaitValue_value. -
nwaitValue_value64
public static void nwaitValue_value64(long struct, long value) Unsafe version ofwaitValue_value64. -
nwaitValue_flags
public static void nwaitValue_flags(long struct, int value) Unsafe version ofwaitValue_flags. -
nwaitValue_alias
public static void nwaitValue_alias(long struct, long value) Unsafe version ofwaitValue_alias. -
nwriteValue_operation
public static void nwriteValue_operation(long struct, int value) Unsafe version ofwriteValue_operation. -
nwriteValue_address
public static void nwriteValue_address(long struct, long value) Unsafe version ofwriteValue_address. -
nwriteValue_value
public static void nwriteValue_value(long struct, int value) Unsafe version ofwriteValue_value. -
nwriteValue_value64
public static void nwriteValue_value64(long struct, long value) Unsafe version ofwriteValue_value64. -
nwriteValue_flags
public static void nwriteValue_flags(long struct, int value) Unsafe version ofwriteValue_flags. -
nwriteValue_alias
public static void nwriteValue_alias(long struct, long value) Unsafe version ofwriteValue_alias. -
nflushRemoteWrites_operation
public static void nflushRemoteWrites_operation(long struct, int value) Unsafe version offlushRemoteWrites_operation. -
nflushRemoteWrites_flags
public static void nflushRemoteWrites_flags(long struct, int value) Unsafe version offlushRemoteWrites_flags. -
nmemoryBarrier_operation
public static void nmemoryBarrier_operation(long struct, int value) Unsafe version ofmemoryBarrier_operation. -
nmemoryBarrier_flags
public static void nmemoryBarrier_flags(long struct, int value) Unsafe version ofmemoryBarrier_flags. -
npad
Unsafe version ofpad. -
npad
public static void npad(long struct, int index, long value) Unsafe version ofpad.
-