Package org.lwjgl.cuda
Class CUDA_POINTER_ATTRIBUTE_P2P_TOKENS
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.cuda.CUDA_POINTER_ATTRIBUTE_P2P_TOKENS
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CUDA_POINTER_ATTRIBUTE_P2P_TOKENS extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceGPU Direct v3 tokens.Layout
struct CUDA_POINTER_ATTRIBUTE_P2P_TOKENS { unsigned long long p2pToken; unsigned int vaSpaceToken; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCUDA_POINTER_ATTRIBUTE_P2P_TOKENS.BufferAn array ofCUDA_POINTER_ATTRIBUTE_P2P_TOKENSstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intP2PTOKENThe struct member offsets.static intSIZEOFThe struct size in bytes.static intVASPACETOKENThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description CUDA_POINTER_ATTRIBUTE_P2P_TOKENS(java.nio.ByteBuffer container)Creates aCUDA_POINTER_ATTRIBUTE_P2P_TOKENSinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CUDA_POINTER_ATTRIBUTE_P2P_TOKENScalloc()Returns a newCUDA_POINTER_ATTRIBUTE_P2P_TOKENSinstance allocated withmemCalloc.static CUDA_POINTER_ATTRIBUTE_P2P_TOKENS.Buffercalloc(int capacity)Returns a newCUDA_POINTER_ATTRIBUTE_P2P_TOKENS.Bufferinstance allocated withmemCalloc.static CUDA_POINTER_ATTRIBUTE_P2P_TOKENS.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCUDA_POINTER_ATTRIBUTE_P2P_TOKENS.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUDA_POINTER_ATTRIBUTE_P2P_TOKENScalloc(org.lwjgl.system.MemoryStack stack)Returns a newCUDA_POINTER_ATTRIBUTE_P2P_TOKENSinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUDA_POINTER_ATTRIBUTE_P2P_TOKENScreate()Returns a newCUDA_POINTER_ATTRIBUTE_P2P_TOKENSinstance allocated withBufferUtils.static CUDA_POINTER_ATTRIBUTE_P2P_TOKENS.Buffercreate(int capacity)Returns a newCUDA_POINTER_ATTRIBUTE_P2P_TOKENS.Bufferinstance allocated withBufferUtils.static CUDA_POINTER_ATTRIBUTE_P2P_TOKENScreate(long address)Returns a newCUDA_POINTER_ATTRIBUTE_P2P_TOKENSinstance for the specified memory address.static CUDA_POINTER_ATTRIBUTE_P2P_TOKENS.Buffercreate(long address, int capacity)Create aCUDA_POINTER_ATTRIBUTE_P2P_TOKENS.Bufferinstance at the specified memory.static CUDA_POINTER_ATTRIBUTE_P2P_TOKENScreateSafe(long address)static CUDA_POINTER_ATTRIBUTE_P2P_TOKENS.BuffercreateSafe(long address, int capacity)static CUDA_POINTER_ATTRIBUTE_P2P_TOKENSmalloc()Returns a newCUDA_POINTER_ATTRIBUTE_P2P_TOKENSinstance allocated withmemAlloc.static CUDA_POINTER_ATTRIBUTE_P2P_TOKENS.Buffermalloc(int capacity)Returns a newCUDA_POINTER_ATTRIBUTE_P2P_TOKENS.Bufferinstance allocated withmemAlloc.static CUDA_POINTER_ATTRIBUTE_P2P_TOKENS.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCUDA_POINTER_ATTRIBUTE_P2P_TOKENS.Bufferinstance allocated on the specifiedMemoryStack.static CUDA_POINTER_ATTRIBUTE_P2P_TOKENSmalloc(org.lwjgl.system.MemoryStack stack)Returns a newCUDA_POINTER_ATTRIBUTE_P2P_TOKENSinstance allocated on the specifiedMemoryStack.static longnp2pToken(long struct)Unsafe version ofp2pToken().static voidnp2pToken(long struct, long value)Unsafe version ofp2pToken.static intnvaSpaceToken(long struct)Unsafe version ofvaSpaceToken().static voidnvaSpaceToken(long struct, int value)Unsafe version ofvaSpaceToken.longp2pToken()CUDA_POINTER_ATTRIBUTE_P2P_TOKENSp2pToken(long value)Sets the specified value to thep2pTokenfield.CUDA_POINTER_ATTRIBUTE_P2P_TOKENSset(long p2pToken, int vaSpaceToken)Initializes this struct with the specified values.CUDA_POINTER_ATTRIBUTE_P2P_TOKENSset(CUDA_POINTER_ATTRIBUTE_P2P_TOKENS src)Copies the specified struct data to this struct.intsizeof()intvaSpaceToken()CUDA_POINTER_ATTRIBUTE_P2P_TOKENSvaSpaceToken(int value)Sets the specified value to thevaSpaceTokenfield.
-
-
-
Constructor Detail
-
CUDA_POINTER_ATTRIBUTE_P2P_TOKENS
public CUDA_POINTER_ATTRIBUTE_P2P_TOKENS(java.nio.ByteBuffer container)
Creates aCUDA_POINTER_ATTRIBUTE_P2P_TOKENSinstance 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
p2pToken
public long p2pToken()
- Returns:
- the value of the
p2pTokenfield.
-
vaSpaceToken
public int vaSpaceToken()
- Returns:
- the value of the
vaSpaceTokenfield.
-
p2pToken
public CUDA_POINTER_ATTRIBUTE_P2P_TOKENS p2pToken(long value)
Sets the specified value to thep2pTokenfield.
-
vaSpaceToken
public CUDA_POINTER_ATTRIBUTE_P2P_TOKENS vaSpaceToken(int value)
Sets the specified value to thevaSpaceTokenfield.
-
set
public CUDA_POINTER_ATTRIBUTE_P2P_TOKENS set(long p2pToken, int vaSpaceToken)
Initializes this struct with the specified values.
-
set
public CUDA_POINTER_ATTRIBUTE_P2P_TOKENS set(CUDA_POINTER_ATTRIBUTE_P2P_TOKENS src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static CUDA_POINTER_ATTRIBUTE_P2P_TOKENS malloc()
Returns a newCUDA_POINTER_ATTRIBUTE_P2P_TOKENSinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static CUDA_POINTER_ATTRIBUTE_P2P_TOKENS calloc()
Returns a newCUDA_POINTER_ATTRIBUTE_P2P_TOKENSinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static CUDA_POINTER_ATTRIBUTE_P2P_TOKENS create()
Returns a newCUDA_POINTER_ATTRIBUTE_P2P_TOKENSinstance allocated withBufferUtils.
-
create
public static CUDA_POINTER_ATTRIBUTE_P2P_TOKENS create(long address)
Returns a newCUDA_POINTER_ATTRIBUTE_P2P_TOKENSinstance for the specified memory address.
-
createSafe
@Nullable public static CUDA_POINTER_ATTRIBUTE_P2P_TOKENS createSafe(long address)
-
malloc
public static CUDA_POINTER_ATTRIBUTE_P2P_TOKENS.Buffer malloc(int capacity)
Returns a newCUDA_POINTER_ATTRIBUTE_P2P_TOKENS.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static CUDA_POINTER_ATTRIBUTE_P2P_TOKENS.Buffer calloc(int capacity)
Returns a newCUDA_POINTER_ATTRIBUTE_P2P_TOKENS.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static CUDA_POINTER_ATTRIBUTE_P2P_TOKENS.Buffer create(int capacity)
Returns a newCUDA_POINTER_ATTRIBUTE_P2P_TOKENS.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static CUDA_POINTER_ATTRIBUTE_P2P_TOKENS.Buffer create(long address, int capacity)
Create aCUDA_POINTER_ATTRIBUTE_P2P_TOKENS.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static CUDA_POINTER_ATTRIBUTE_P2P_TOKENS.Buffer createSafe(long address, int capacity)
-
malloc
public static CUDA_POINTER_ATTRIBUTE_P2P_TOKENS malloc(org.lwjgl.system.MemoryStack stack)
Returns a newCUDA_POINTER_ATTRIBUTE_P2P_TOKENSinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static CUDA_POINTER_ATTRIBUTE_P2P_TOKENS calloc(org.lwjgl.system.MemoryStack stack)
Returns a newCUDA_POINTER_ATTRIBUTE_P2P_TOKENSinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static CUDA_POINTER_ATTRIBUTE_P2P_TOKENS.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCUDA_POINTER_ATTRIBUTE_P2P_TOKENS.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static CUDA_POINTER_ATTRIBUTE_P2P_TOKENS.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCUDA_POINTER_ATTRIBUTE_P2P_TOKENS.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
np2pToken
public static long np2pToken(long struct)
Unsafe version ofp2pToken().
-
nvaSpaceToken
public static int nvaSpaceToken(long struct)
Unsafe version ofvaSpaceToken().
-
np2pToken
public static void np2pToken(long struct, long value)Unsafe version ofp2pToken.
-
nvaSpaceToken
public static void nvaSpaceToken(long struct, int value)Unsafe version ofvaSpaceToken.
-
-