MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / readFloatBuffer

Method readFloatBuffer

physx/source/geomutils/src/GuSerialize.cpp:110–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
109
110bool physx::readFloatBuffer(PxF32* dest, PxU32 nbFloats, bool mismatch, PxInputStream& stream)
111{
112 stream.read(dest, sizeof(PxF32)*nbFloats);
113 if(mismatch)
114 {
115 for(PxU32 i=0;i<nbFloats;i++)
116 flip(dest[i]);
117 }
118 return true;
119}
120
121void physx::writeFloatBuffer(const PxF32* src, PxU32 nb, bool mismatch, PxOutputStream& stream)
122{

Callers

nothing calls this directly

Calls 2

flipFunction · 0.70
readMethod · 0.45

Tested by

no test coverage detected