MCPcopy Create free account
hub / github.com/RenderKit/ospray / getTiles

Method getTiles

modules/cpu/fb/SparseFB.cpp:203–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203const utility::ArrayView<Tile> SparseFrameBuffer::getTiles()
204{
205 if (!tiles) {
206 return utility::ArrayView<Tile>(nullptr, 0);
207 }
208 if (tilesDirty) {
209 RKCOMMON_IF_TRACING_ENABLED(
210 rkcommon::tracing::beginEvent("SparseFB::getTiles", "ospray"));
211
212 tilesDirty = false;
213 tiles->copyToHost().wait();
214
215 RKCOMMON_IF_TRACING_ENABLED(rkcommon::tracing::endEvent());
216 }
217
218 return utility::ArrayView<Tile>(tiles->hostPtr(), tiles->size());
219}
220
221const utility::ArrayView<Tile> SparseFrameBuffer::getTilesDevice() const
222{

Callers 3

renderFrameMethod · 0.80

Calls 4

copyToHostMethod · 0.80
hostPtrMethod · 0.80
waitMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected