Top Description Inners Fields Constructors Methods
org.lwjgl.cuda

public Class CUstreamBatchMemOpParams

extends Struct<CUstreamBatchMemOpParams>
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


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 and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
FLUSHREMOTEWRITES

The struct member offsets.

public static final int
FLUSHREMOTEWRITES_FLAGS

The struct member offsets.

public static final int
FLUSHREMOTEWRITES_OPERATION

The struct member offsets.

public static final int
MEMORYBARRIER

The struct member offsets.

public static final int
MEMORYBARRIER_FLAGS

The struct member offsets.

public static final int
MEMORYBARRIER_OPERATION

The struct member offsets.

public static final int
OPERATION

The struct member offsets.

public static final int
PAD

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
WAITVALUE

The struct member offsets.

public static final int
WAITVALUE_ADDRESS

The struct member offsets.

public static final int
WAITVALUE_ALIAS

The struct member offsets.

public static final int
WAITVALUE_FLAGS

The struct member offsets.

public static final int
WAITVALUE_OPERATION

The struct member offsets.

public static final int
WAITVALUE_VALUE

The struct member offsets.

public static final int
WAITVALUE_VALUE64

The struct member offsets.

public static final int
WRITEVALUE

The struct member offsets.

public static final int
WRITEVALUE_ADDRESS

The struct member offsets.

public static final int
WRITEVALUE_ALIAS

The struct member offsets.

public static final int
WRITEVALUE_FLAGS

The struct member offsets.

public static final int
WRITEVALUE_OPERATION

The struct member offsets.

public static final int
WRITEVALUE_VALUE

The struct member offsets.

public static final int
WRITEVALUE_VALUE64

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

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

public
CUstreamBatchMemOpParams(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public static CUstreamBatchMemOpParams
calloc()

Returns a new CUstreamBatchMemOpParams instance allocated with memCalloc.

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

Returns a new CUstreamBatchMemOpParams.Buffer instance allocated with memCalloc.

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

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

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

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

public static CUstreamBatchMemOpParams
callocStack()

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

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

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

Deprecated
Deprecated for removal in 3.4.0.
protected CUstreamBatchMemOpParams
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 CUstreamBatchMemOpParams
create()

Returns a new CUstreamBatchMemOpParams instance allocated with BufferUtils.

public static CUstreamBatchMemOpParams
create(long address)

Returns a new CUstreamBatchMemOpParams instance for the specified memory address.

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

Returns a new CUstreamBatchMemOpParams.Buffer instance allocated with BufferUtils.

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

Create a CUstreamBatchMemOpParams.Buffer instance at the specified memory.

public static CUstreamBatchMemOpParams
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public int

Returns:

the value of the flushRemoteWrites.flags field.
flushRemoteWrites_flags
()

public CUstreamBatchMemOpParams
flushRemoteWrites_flags(int value)

Sets the specified value to the flags field.

public int

Returns:

the value of the flushRemoteWrites.operation field.
flushRemoteWrites_operation
()

public CUstreamBatchMemOpParams
flushRemoteWrites_operation(int value)

Sets the specified value to the operation field.

public static CUstreamBatchMemOpParams
malloc()

Returns a new CUstreamBatchMemOpParams instance allocated with memAlloc.

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

Returns a new CUstreamBatchMemOpParams.Buffer instance allocated with memAlloc.

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

Returns a new CUstreamBatchMemOpParams instance allocated on the specified MemoryStack.

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

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

public static CUstreamBatchMemOpParams
mallocStack()

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

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

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

Deprecated
Deprecated for removal in 3.4.0.
public int

Returns:

the value of the memoryBarrier.flags field.
memoryBarrier_flags
()

public CUstreamBatchMemOpParams
memoryBarrier_flags(int value)

Sets the specified value to the flags field.

public int

Returns:

the value of the memoryBarrier.operation field.
memoryBarrier_operation
()

public CUstreamBatchMemOpParams
memoryBarrier_operation(int value)

Sets the specified value to the operation field.

public static int
nflushRemoteWrites_flags(long struct)

Unsafe version of flushRemoteWrites_flags.

public static void
nflushRemoteWrites_flags(long struct, int value)

Unsafe version of flushRemoteWrites_flags.

public static int
public static void
nflushRemoteWrites_operation(long struct, int value)

Unsafe version of flushRemoteWrites_operation.

public static int
nmemoryBarrier_flags(long struct)

Unsafe version of memoryBarrier_flags.

public static void
nmemoryBarrier_flags(long struct, int value)

Unsafe version of memoryBarrier_flags.

public static int
nmemoryBarrier_operation(long struct)

Unsafe version of memoryBarrier_operation.

public static void
nmemoryBarrier_operation(long struct, int value)

Unsafe version of memoryBarrier_operation.

public static int
noperation(long struct)

Unsafe version of operation.

public static void
noperation(long struct, int value)

Unsafe version of operation.

public static LongBuffer
npad(long struct)

Unsafe version of pad.

public static long
npad(long struct, int index)

Unsafe version of pad.

public static void
npad(long struct, LongBuffer value)

Unsafe version of pad.

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

Unsafe version of pad.

public static long
nwaitValue_address(long struct)

Unsafe version of waitValue_address.

public static void
nwaitValue_address(long struct, long value)

Unsafe version of waitValue_address.

public static long
nwaitValue_alias(long struct)

Unsafe version of waitValue_alias.

public static void
nwaitValue_alias(long struct, long value)

Unsafe version of waitValue_alias.

public static int
nwaitValue_flags(long struct)

Unsafe version of waitValue_flags.

public static void
nwaitValue_flags(long struct, int value)

Unsafe version of waitValue_flags.

public static int
nwaitValue_operation(long struct)

Unsafe version of waitValue_operation.

public static void
nwaitValue_operation(long struct, int value)

Unsafe version of waitValue_operation.

public static int
nwaitValue_value(long struct)

Unsafe version of waitValue_value.

public static void
nwaitValue_value(long struct, int value)

Unsafe version of waitValue_value.

public static long
nwaitValue_value64(long struct)

Unsafe version of waitValue_value64.

public static void
nwaitValue_value64(long struct, long value)

Unsafe version of waitValue_value64.

public static long
nwriteValue_address(long struct)

Unsafe version of writeValue_address.

public static void
nwriteValue_address(long struct, long value)

Unsafe version of writeValue_address.

public static long
nwriteValue_alias(long struct)

Unsafe version of writeValue_alias.

public static void
nwriteValue_alias(long struct, long value)

Unsafe version of writeValue_alias.

public static int
nwriteValue_flags(long struct)

Unsafe version of writeValue_flags.

public static void
nwriteValue_flags(long struct, int value)

Unsafe version of writeValue_flags.

public static int
nwriteValue_operation(long struct)

Unsafe version of writeValue_operation.

public static void
nwriteValue_operation(long struct, int value)

Unsafe version of writeValue_operation.

public static int
nwriteValue_value(long struct)

Unsafe version of writeValue_value.

public static void
nwriteValue_value(long struct, int value)

Unsafe version of writeValue_value.

public static long
nwriteValue_value64(long struct)

Unsafe version of writeValue_value64.

public static void
nwriteValue_value64(long struct, long value)

Unsafe version of writeValue_value64.

public int

Returns:

the value of the operation field.
operation
()

public CUstreamBatchMemOpParams
operation(int value)

Sets the specified value to the operation field.

public LongBuffer

Returns:

a LongBuffer view of the pad field.
pad
()

public long

Returns:

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

public CUstreamBatchMemOpParams
pad(LongBuffer value)

Copies the specified LongBuffer to the pad field.

public CUstreamBatchMemOpParams
pad(int index, long value)

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

public CUstreamBatchMemOpParams

Returns:

this struct
set
(CUstreamBatchMemOpParams
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

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

Returns sizeof(struct).
public long

Returns:

the value of the waitValue.address field.
waitValue_address
()

public CUstreamBatchMemOpParams
waitValue_address(long value)

Sets the specified value to the address field.

public long

Returns:

the value of the waitValue.alias field.
waitValue_alias
()

public CUstreamBatchMemOpParams
waitValue_alias(long value)

Sets the specified value to the alias field.

public int

Returns:

the value of the waitValue.flags field.
waitValue_flags
()

public CUstreamBatchMemOpParams
waitValue_flags(int value)

Sets the specified value to the flags field.

public int

Returns:

the value of the waitValue.operation field.
waitValue_operation
()

public CUstreamBatchMemOpParams
waitValue_operation(int value)

Sets the specified value to the operation field.

public int

Returns:

the value of the waitValue.value field.
waitValue_value
()

public CUstreamBatchMemOpParams
waitValue_value(int value)

Sets the specified value to the value field.

public long

Returns:

the value of the waitValue.value64 field.
waitValue_value64
()

public CUstreamBatchMemOpParams
waitValue_value64(long value)

Sets the specified value to the value64 field.

public long

Returns:

the value of the writeValue.address field.
writeValue_address
()

public CUstreamBatchMemOpParams
writeValue_address(long value)

Sets the specified value to the address field.

public long

Returns:

the value of the writeValue.alias field.
writeValue_alias
()

public CUstreamBatchMemOpParams
writeValue_alias(long value)

Sets the specified value to the alias field.

public int

Returns:

the value of the writeValue.flags field.
writeValue_flags
()

public CUstreamBatchMemOpParams
writeValue_flags(int value)

Sets the specified value to the flags field.

public int

Returns:

the value of the writeValue.operation field.
writeValue_operation
()

public CUstreamBatchMemOpParams
writeValue_operation(int value)

Sets the specified value to the operation field.

public int

Returns:

the value of the writeValue.value field.
writeValue_value
()

public CUstreamBatchMemOpParams
writeValue_value(int value)

Sets the specified value to the value field.

public long

Returns:

the value of the writeValue.value64 field.
writeValue_value64
()

public CUstreamBatchMemOpParams
writeValue_value64(long value)

Sets the specified value to the value64 field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate