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

Method getBufferByteSizeAndAlignment

core/engine.cpp:22–25  ·  view source on GitHub ↗

Returns the actual size and required alignment of a buffer allocated from a heap/arena

Source from the content-addressed store, hash-verified

20
21 // Returns the actual size and required alignment of a buffer allocated from a heap/arena
22 SizeAndAlignment Engine::getBufferByteSizeAndAlignment(size_t byteSize, Storage storage)
23 {
24 return {byteSize, memoryAlignment};
25 }
26
27 Ref<Buffer> Engine::newBuffer(size_t byteSize, Storage storage)
28 {

Callers 1

addOpMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected