MCPcopy Create free account
hub / github.com/RenderKit/embree / updateObjects

Function updateObjects

tutorials/buildbench/buildbench_device.cpp:157–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155 }
156
157 void updateObjects(ISPCScene* scene_in, RTCScene scene_out)
158 {
159 size_t numGeometries = scene_in->numGeometries;
160 for (size_t i=0; i<numGeometries; i++)
161 {
162 RTCGeometry geom = rtcGetGeometry(scene_out,i);
163 rtcUpdateGeometryBuffer(geom,RTC_BUFFER_TYPE_VERTEX, 0);
164 rtcCommitGeometry(geom);
165 }
166 }
167
168 void deleteObjects(ISPCScene* scene_in, RTCScene scene_out)
169 {

Callers 2

Benchmark_Dynamic_UpdateFunction · 0.85

Calls 2

rtcUpdateGeometryBufferFunction · 0.85
rtcCommitGeometryFunction · 0.85

Tested by

no test coverage detected