MCPcopy Create free account
hub / github.com/RenderKit/embree / Buffer

Method Buffer

kernels/common/buffer.h:38–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37 public:
38 Buffer(Device* device, size_t numBytes_in, void* ptr_in)
39 : device(device), numBytes(numBytes_in)
40 {
41 device->refInc();
42
43 ptr = alloc(ptr_in, shared, EmbreeMemoryType::USM_SHARED);
44#if defined(EMBREE_SYCL_SUPPORT)
45 dshared = true;
46 dptr = ptr;
47 modified = true;
48#endif
49 }
50
51 Buffer(Device* device, size_t numBytes_in, void* ptr_in, void* dptr_in)
52 : device(device), numBytes(numBytes_in)

Callers

nothing calls this directly

Calls 5

allocFunction · 0.85
refIncMethod · 0.80
is_gpuMethod · 0.45
has_unified_memoryMethod · 0.45
get_memory_typeMethod · 0.45

Tested by

no test coverage detected