Package physx.common

Class PxCudaContextManagerDesc


  • public class PxCudaContextManagerDesc
    extends NativeObject
    • Field Detail

      • SIZEOF

        public static final int SIZEOF
    • Constructor Detail

      • PxCudaContextManagerDesc

        protected PxCudaContextManagerDesc​(long address)
      • PxCudaContextManagerDesc

        public PxCudaContextManagerDesc()
    • Method Detail

      • 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
      • 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 index
        value - 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 index
        value - 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 index
        value - WebIDL type: unsigned long