@NoOffset @Properties(inherit=Bullet3OpenCL.class) public class b3GpuParallelLinearBvh extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
b3GpuParallelLinearBvh(Pointer p)
Pointer cast constructor.
|
b3GpuParallelLinearBvh(Pointer context,
Pointer device,
Pointer queue) |
| Modifier and Type | Method and Description |
|---|---|
void |
build(b3SapAabbOCLArray worldSpaceAabbs,
b3IntOCLArray smallAabbIndices,
b3IntOCLArray largeAabbIndices)
Must be called before any other function
|
void |
calculateOverlappingPairs(b3Int4OCLArray out_overlappingPairs)
calculateOverlappingPairs() uses the worldSpaceAabbs parameter of b3GpuParallelLinearBvh::build() as the query AABBs.
|
void |
testRaysAgainstBvhAabbs(b3RayInfoOCLArray rays,
b3IntOCLArray out_numRayRigidPairs,
b3Int2OCLArray out_rayRigidPairs) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic b3GpuParallelLinearBvh(Pointer p)
Pointer(Pointer).public void build(@Const @ByRef b3SapAabbOCLArray worldSpaceAabbs, @Const @ByRef b3IntOCLArray smallAabbIndices, @Const @ByRef b3IntOCLArray largeAabbIndices)
public void calculateOverlappingPairs(@ByRef b3Int4OCLArray out_overlappingPairs)
out_overlappingPairs - The size() of this array is used to determine the max number of pairs.
If the number of overlapping pairs is < out_overlappingPairs.size(), out_overlappingPairs is resized.public void testRaysAgainstBvhAabbs(@Const @ByRef b3RayInfoOCLArray rays, @ByRef b3IntOCLArray out_numRayRigidPairs, @ByRef b3Int2OCLArray out_rayRigidPairs)
out_numRigidRayPairs - Array of length 1; contains the number of detected ray-rigid AABB intersections;
this value may be greater than out_rayRigidPairs.size() if out_rayRigidPairs is not large enough.out_rayRigidPairs - Contains an array of rays intersecting rigid AABBs; x == ray index, y == rigid body index.
If the size of this array is insufficient to hold all ray-rigid AABB intersections, additional intersections are discarded.Copyright © 2024. All rights reserved.