MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/FleX / MapBuffers

Function MapBuffers

demo/main.cpp:218–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216SimBuffers* g_buffers;
217
218void MapBuffers(SimBuffers* buffers)
219{
220 buffers->positions.map();
221 buffers->restPositions.map();
222 buffers->velocities.map();
223 buffers->phases.map();
224 buffers->densities.map();
225 buffers->anisotropy1.map();
226 buffers->anisotropy2.map();
227 buffers->anisotropy3.map();
228 buffers->normals.map();
229 buffers->diffusePositions.map();
230 buffers->diffuseVelocities.map();
231 buffers->diffuseIndices.map();
232 buffers->smoothPositions.map();
233 buffers->activeIndices.map();
234
235 // convexes
236 buffers->shapeGeometry.map();
237 buffers->shapePositions.map();
238 buffers->shapeRotations.map();
239 buffers->shapePrevPositions.map();
240 buffers->shapePrevRotations.map();
241 buffers->shapeFlags.map();
242
243 buffers->rigidOffsets.map();
244 buffers->rigidIndices.map();
245 buffers->rigidMeshSize.map();
246 buffers->rigidCoefficients.map();
247 buffers->rigidRotations.map();
248 buffers->rigidTranslations.map();
249 buffers->rigidLocalPositions.map();
250 buffers->rigidLocalNormals.map();
251
252 buffers->springIndices.map();
253 buffers->springLengths.map();
254 buffers->springStiffness.map();
255
256 // inflatables
257 buffers->inflatableTriOffsets.map();
258 buffers->inflatableTriCounts.map();
259 buffers->inflatableVolumes.map();
260 buffers->inflatableCoefficients.map();
261 buffers->inflatablePressures.map();
262
263 buffers->triangles.map();
264 buffers->triangleNormals.map();
265 buffers->uvs.map();
266}
267
268void UnmapBuffers(SimBuffers* buffers)
269{

Callers 2

InitFunction · 0.85
UpdateFrameFunction · 0.85

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected