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

Method clone

apps/utils/image_buffer.cpp:81–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79 }
80
81 std::shared_ptr<ImageBuffer> ImageBuffer::clone() const
82 {
83 auto result = std::make_shared<ImageBuffer>(device, width, height, numChannels, dataType);
84 buffer.read(0, byteSize, result->getHostData());
85 return result;
86 }
87
88 bool compareImage(const ImageBuffer& image, const ImageBuffer& ref)
89 {

Callers 4

oidnTest.cppFile · 0.45
mainFunction · 0.45
saveImageFunction · 0.45
__call__Method · 0.45

Calls 1

readMethod · 0.45

Tested by

no test coverage detected