MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / BatchStreamHeader

Class BatchStreamHeader

deps/physx/physx/source/physx/src/NpBatchQuery.cpp:92–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90namespace physx
91{
92struct BatchStreamHeader
93{
94 BatchStreamHeader(
95 PxHitFlags aHitFlags, const PxQueryCache* aCache, const PxQueryFilterData& aFd,
96 void* aUserData, PxU16 aMaxTouchHits, QTypeROS::Enum aHitTypeId) :
97 hitFlags(aHitFlags), fd(aFd), userData(aUserData), cache(aCache),
98 maxTouchHits(aMaxTouchHits), hitTypeId(char(aHitTypeId))
99 {
100 nextQueryOffset = PxU32(NpBatchQuery::eTERMINAL);
101 }
102
103 BatchStreamHeader() {}
104
105 // TODO: possibly maintain 3 separate offset lists in the same array for raycasts/overlaps/sweeps
106 // offset of a 4-byte ptr to offset in the previously stored batch query in the stream, this is not a ptr because of reallocs
107 PxU32 nextQueryOffset;
108 PxHitFlags hitFlags;
109 PxQueryFilterData fd;
110 void* userData;
111 const PxQueryCache* cache;
112 PxU16 maxTouchHits;
113 char hitTypeId; // Sq::QTypeROS
114};
115} // namespace physx
116
117static void writeGeom(BatchQueryStream& stream, const PxGeometry& geom)

Callers 3

raycastMethod · 0.70
overlapMethod · 0.70
sweepMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected