MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / registerResources

Method registerResources

src/backend/opencl/GraphicsResourceManager.cpp:15–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13namespace arrayfire {
14namespace opencl {
15GraphicsResourceManager::ShrdResVector
16GraphicsResourceManager::registerResources(
17 const std::vector<uint32_t>& resources) {
18 ShrdResVector output;
19
20 for (auto id : resources) {
21 output.emplace_back(new cl::BufferGL(
22 getContext(), CL_MEM_WRITE_ONLY, // NOLINT(hicpp-signed-bitwise)
23 id, NULL));
24 }
25
26 return output;
27}
28} // namespace opencl
29} // namespace arrayfire

Callers

nothing calls this directly

Calls 1

getContextFunction · 0.50

Tested by

no test coverage detected