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

Method newExternalBuffer

core/engine.cpp:48–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 }
47
48 Ref<Buffer> Engine::newExternalBuffer(ExternalMemoryTypeFlags fdType,
49 int fd, size_t byteSize)
50 {
51 throw Exception(Error::InvalidOperation,
52 "creating a shared buffer from a POSIX file descriptor is not supported by the device");
53 }
54
55 Ref<Buffer> Engine::newExternalBuffer(ExternalMemoryTypeFlags handleType,
56 void* handle, const void* name, size_t byteSize)

Callers 1

newExternalUserBufferMethod · 0.45

Calls 1

ExceptionFunction · 0.85

Tested by

no test coverage detected