MCPcopy Create free account
hub / github.com/RenderKit/oidn / setScratch

Method setScratch

core/graph.cpp:433–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

431 }
432
433 void Graph::setScratch(const Ref<Buffer>& scratch)
434 {
435 if (scratch->getByteSize() < getScratchByteSize())
436 throw std::invalid_argument("graph scratch buffer is too small");
437 this->scratch = scratch;
438 }
439
440 void Graph::cleanup()
441 {

Callers 2

buildModelMethod · 0.45
finalizeMethod · 0.45

Calls 2

getScratchByteSizeFunction · 0.85
getByteSizeMethod · 0.45

Tested by

no test coverage detected