Package physx.common
Class PxCudaContextManagerDesc
- java.lang.Object
-
- physx.NativeObject
-
- physx.common.PxCudaContextManagerDesc
-
public class PxCudaContextManagerDesc extends NativeObject
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T>
-
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFstatic intSIZEOF-
Fields inherited from class physx.NativeObject
address, isExternallyAllocated
-
-
Constructor Summary
Constructors Modifier Constructor Description PxCudaContextManagerDesc()protectedPxCudaContextManagerDesc(long address)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PxCudaContextManagerDesccreateAt(long address)static <T> PxCudaContextManagerDesccreateAt(T allocator, NativeObject.Allocator<T> allocate)voiddestroy()NativeObjectgetGraphicsDevice()intgetInteropMode()intgetMaxMemorySize(int index)intgetMemoryBaseSize(int index)intgetMemoryPageSize(int index)voidsetGraphicsDevice(NativeObject value)voidsetInteropMode(int value)voidsetMaxMemorySize(int index, int value)voidsetMemoryBaseSize(int index, int value)voidsetMemoryPageSize(int index, int value)static PxCudaContextManagerDescwrapPointer(long address)-
Methods inherited from class physx.NativeObject
checkNotNull, equals, getAddress, hashCode
-
-
-
-
Field Detail
-
SIZEOF
public static final int SIZEOF
-
ALIGNOF
public static final int ALIGNOF
- See Also:
- Constant Field Values
-
-
Method Detail
-
wrapPointer
public static PxCudaContextManagerDesc wrapPointer(long address)
-
createAt
public static PxCudaContextManagerDesc createAt(long address)
- Parameters:
address- Pre-allocated memory, where the object is created.- Returns:
- Stack allocated object of PxCudaContextManagerDesc
-
createAt
public static <T> PxCudaContextManagerDesc createAt(T allocator, NativeObject.Allocator<T> allocate)
- Type Parameters:
T- Allocator class, e.g. LWJGL's MemoryStack.- Parameters:
allocator- Object to use for allocation, e.g. an instance of LWJGL's MemoryStack.allocate- Method to call on allocator to obtain the target address, e.g. MemoryStack::nmalloc.- Returns:
- Stack allocated object of PxCudaContextManagerDesc
-
destroy
public void destroy()
-
getGraphicsDevice
public NativeObject getGraphicsDevice()
- Returns:
- WebIDL type: VoidPtr
-
setGraphicsDevice
public void setGraphicsDevice(NativeObject value)
- Parameters:
value- WebIDL type: VoidPtr
-
getInteropMode
public int getInteropMode()
- Returns:
- WebIDL type:
PxCudaInteropModeEnum[enum]
-
setInteropMode
public void setInteropMode(int value)
- Parameters:
value- WebIDL type:PxCudaInteropModeEnum[enum]
-
getMaxMemorySize
public int getMaxMemorySize(int index)
- Parameters:
index- Array index- Returns:
- WebIDL type: unsigned long
-
setMaxMemorySize
public void setMaxMemorySize(int index, int value)- Parameters:
index- Array indexvalue- WebIDL type: unsigned long
-
getMemoryBaseSize
public int getMemoryBaseSize(int index)
- Parameters:
index- Array index- Returns:
- WebIDL type: unsigned long
-
setMemoryBaseSize
public void setMemoryBaseSize(int index, int value)- Parameters:
index- Array indexvalue- WebIDL type: unsigned long
-
getMemoryPageSize
public int getMemoryPageSize(int index)
- Parameters:
index- Array index- Returns:
- WebIDL type: unsigned long
-
setMemoryPageSize
public void setMemoryPageSize(int index, int value)- Parameters:
index- Array indexvalue- WebIDL type: unsigned long
-
-