java.lang.Object
physx.NativeObject
physx.common.PxCudaTopLevelFunctions
-
Nested Class Summary
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T> -
Field Summary
FieldsFields inherited from class physx.NativeObject
address, isExternallyAllocated, SIZEOF_BYTE, SIZEOF_DOUBLE, SIZEOF_FLOAT, SIZEOF_INT, SIZEOF_LONG, SIZEOF_POINTER, SIZEOF_SHORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NativeObjectallocPinnedHostBufferPxU32(PxCudaContextManager cudaContextManager, int numElements) static PxVec4allocPinnedHostBufferPxVec4(PxCudaContextManager cudaContextManager, int numElements) static PxCudaTopLevelFunctionsarrayGet(long baseAddress, int index) static PxParticleAndDiffuseBufferCreateAndPopulateParticleAndDiffuseBuffer(PxParticleAndDiffuseBufferDesc desc, PxCudaContextManager cudaContextManager) static PxParticleBufferCreateAndPopulateParticleBuffer(PxParticleBufferDesc desc, PxCudaContextManager cudaContextManager) static PxParticleClothBufferCreateAndPopulateParticleClothBuffer(PxParticleBufferDesc desc, PxParticleClothDesc clothDesc, PxPartitionedParticleCloth output, PxCudaContextManager cudaContextManager) static PxCudaContextManagerCreateCudaContextManager(PxFoundation foundation, PxCudaContextManagerDesc desc) static PxParticleClothBufferHelperCreateParticleClothBufferHelper(int maxCloths, int maxTriangles, int maxSprings, int maxParticles, PxCudaContextManager cudaContextManager) static PxParticleClothCookerCreateParticleClothCooker(int vertexCount, PxVec4 inVertices, int triangleIndexCount, PxU32Ptr inTriangleIndices) static PxParticleClothCookerCreateParticleClothCooker(int vertexCount, PxVec4 inVertices, int triangleIndexCount, PxU32Ptr inTriangleIndices, int constraintTypeFlags) static PxParticleClothCookerCreateParticleClothCooker(int vertexCount, PxVec4 inVertices, int triangleIndexCount, PxU32Ptr inTriangleIndices, int constraintTypeFlags, PxVec3 verticalDirection) static PxParticleClothCookerCreateParticleClothCooker(int vertexCount, PxVec4 inVertices, int triangleIndexCount, PxU32Ptr inTriangleIndices, int constraintTypeFlags, PxVec3 verticalDirection, float bendingConstraintMaxAngle) static PxParticleClothPreProcessorCreateParticleClothPreProcessor(PxCudaContextManager cudaContextManager) static voidfreePinnedHostBufferPxU32(PxCudaContextManager cudaContextManager, PxU32Ptr buffer) static voidfreePinnedHostBufferPxVec4(PxCudaContextManager cudaContextManager, PxVec4 buffer) static intGetSuggestedCudaDeviceOrdinal(PxFoundation foundation) static longpxU32deviceptr(NativeObject pxU32data) static longpxVec4deviceptr(PxVec4 pxVec4data) static PxCudaTopLevelFunctionswrapPointer(long address) Methods inherited from class physx.NativeObject
checkNotNull, equals, getAddress, hashCode
-
Field Details
-
SIZEOF
public static final int SIZEOF -
ALIGNOF
public static final int ALIGNOF- See Also:
-
-
Constructor Details
-
PxCudaTopLevelFunctions
protected PxCudaTopLevelFunctions() -
PxCudaTopLevelFunctions
protected PxCudaTopLevelFunctions(long address)
-
-
Method Details
-
wrapPointer
-
arrayGet
-
GetSuggestedCudaDeviceOrdinal
- Parameters:
foundation- WebIDL type:PxFoundation[Ref]- Returns:
- WebIDL type: long
-
CreateCudaContextManager
public static PxCudaContextManager CreateCudaContextManager(PxFoundation foundation, PxCudaContextManagerDesc desc) - Parameters:
foundation- WebIDL type:PxFoundation[Ref]desc- WebIDL type:PxCudaContextManagerDesc[Const, Ref]- Returns:
- WebIDL type:
PxCudaContextManager
-
CreateParticleClothPreProcessor
public static PxParticleClothPreProcessor CreateParticleClothPreProcessor(PxCudaContextManager cudaContextManager) - Parameters:
cudaContextManager- WebIDL type:PxCudaContextManager- Returns:
- WebIDL type:
PxParticleClothPreProcessor
-
CreateParticleClothBufferHelper
public static PxParticleClothBufferHelper CreateParticleClothBufferHelper(int maxCloths, int maxTriangles, int maxSprings, int maxParticles, PxCudaContextManager cudaContextManager) - Parameters:
maxCloths- WebIDL type: unsigned longmaxTriangles- WebIDL type: unsigned longmaxSprings- WebIDL type: unsigned longmaxParticles- WebIDL type: unsigned longcudaContextManager- WebIDL type:PxCudaContextManager- Returns:
- WebIDL type:
PxParticleClothBufferHelper
-
CreateParticleClothCooker
public static PxParticleClothCooker CreateParticleClothCooker(int vertexCount, PxVec4 inVertices, int triangleIndexCount, PxU32Ptr inTriangleIndices) - Parameters:
vertexCount- WebIDL type: unsigned longinVertices- WebIDL type:PxVec4triangleIndexCount- WebIDL type: unsigned longinTriangleIndices- WebIDL type:PxU32Ptr[Ref]- Returns:
- WebIDL type:
PxParticleClothCooker
-
CreateParticleClothCooker
public static PxParticleClothCooker CreateParticleClothCooker(int vertexCount, PxVec4 inVertices, int triangleIndexCount, PxU32Ptr inTriangleIndices, int constraintTypeFlags) - Parameters:
vertexCount- WebIDL type: unsigned longinVertices- WebIDL type:PxVec4triangleIndexCount- WebIDL type: unsigned longinTriangleIndices- WebIDL type:PxU32Ptr[Ref]constraintTypeFlags- WebIDL type: unsigned long- Returns:
- WebIDL type:
PxParticleClothCooker
-
CreateParticleClothCooker
public static PxParticleClothCooker CreateParticleClothCooker(int vertexCount, PxVec4 inVertices, int triangleIndexCount, PxU32Ptr inTriangleIndices, int constraintTypeFlags, PxVec3 verticalDirection) - Parameters:
vertexCount- WebIDL type: unsigned longinVertices- WebIDL type:PxVec4triangleIndexCount- WebIDL type: unsigned longinTriangleIndices- WebIDL type:PxU32Ptr[Ref]constraintTypeFlags- WebIDL type: unsigned longverticalDirection- WebIDL type:PxVec3[Ref]- Returns:
- WebIDL type:
PxParticleClothCooker
-
CreateParticleClothCooker
public static PxParticleClothCooker CreateParticleClothCooker(int vertexCount, PxVec4 inVertices, int triangleIndexCount, PxU32Ptr inTriangleIndices, int constraintTypeFlags, PxVec3 verticalDirection, float bendingConstraintMaxAngle) - Parameters:
vertexCount- WebIDL type: unsigned longinVertices- WebIDL type:PxVec4triangleIndexCount- WebIDL type: unsigned longinTriangleIndices- WebIDL type:PxU32Ptr[Ref]constraintTypeFlags- WebIDL type: unsigned longverticalDirection- WebIDL type:PxVec3[Ref]bendingConstraintMaxAngle- WebIDL type: float- Returns:
- WebIDL type:
PxParticleClothCooker
-
CreateAndPopulateParticleClothBuffer
public static PxParticleClothBuffer CreateAndPopulateParticleClothBuffer(PxParticleBufferDesc desc, PxParticleClothDesc clothDesc, PxPartitionedParticleCloth output, PxCudaContextManager cudaContextManager) - Parameters:
desc- WebIDL type:PxParticleBufferDesc[Const, Ref]clothDesc- WebIDL type:PxParticleClothDesc[Const, Ref]output- WebIDL type:PxPartitionedParticleCloth[Ref]cudaContextManager- WebIDL type:PxCudaContextManager- Returns:
- WebIDL type:
PxParticleClothBuffer
-
CreateAndPopulateParticleBuffer
public static PxParticleBuffer CreateAndPopulateParticleBuffer(PxParticleBufferDesc desc, PxCudaContextManager cudaContextManager) - Parameters:
desc- WebIDL type:PxParticleBufferDesc[Const, Ref]cudaContextManager- WebIDL type:PxCudaContextManager- Returns:
- WebIDL type:
PxParticleBuffer
-
CreateAndPopulateParticleAndDiffuseBuffer
public static PxParticleAndDiffuseBuffer CreateAndPopulateParticleAndDiffuseBuffer(PxParticleAndDiffuseBufferDesc desc, PxCudaContextManager cudaContextManager) - Parameters:
desc- WebIDL type:PxParticleAndDiffuseBufferDesc[Const, Ref]cudaContextManager- WebIDL type:PxCudaContextManager- Returns:
- WebIDL type:
PxParticleAndDiffuseBuffer
-
allocPinnedHostBufferPxU32
public static NativeObject allocPinnedHostBufferPxU32(PxCudaContextManager cudaContextManager, int numElements) - Parameters:
cudaContextManager- WebIDL type:PxCudaContextManagernumElements- WebIDL type: unsigned long- Returns:
- WebIDL type: VoidPtr
-
allocPinnedHostBufferPxVec4
public static PxVec4 allocPinnedHostBufferPxVec4(PxCudaContextManager cudaContextManager, int numElements) - Parameters:
cudaContextManager- WebIDL type:PxCudaContextManagernumElements- WebIDL type: unsigned long- Returns:
- WebIDL type:
PxVec4
-
freePinnedHostBufferPxU32
public static void freePinnedHostBufferPxU32(PxCudaContextManager cudaContextManager, PxU32Ptr buffer) - Parameters:
cudaContextManager- WebIDL type:PxCudaContextManagerbuffer- WebIDL type:PxU32Ptr[Ref]
-
freePinnedHostBufferPxVec4
public static void freePinnedHostBufferPxVec4(PxCudaContextManager cudaContextManager, PxVec4 buffer) - Parameters:
cudaContextManager- WebIDL type:PxCudaContextManagerbuffer- WebIDL type:PxVec4
-
pxU32deviceptr
- Parameters:
pxU32data- WebIDL type: VoidPtr- Returns:
- WebIDL type: unsigned long long
-
pxVec4deviceptr
- Parameters:
pxVec4data- WebIDL type:PxVec4- Returns:
- WebIDL type: unsigned long long
-