| 13 | namespace arrayfire { |
| 14 | namespace opencl { |
| 15 | GraphicsResourceManager::ShrdResVector |
| 16 | GraphicsResourceManager::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 |
nothing calls this directly
no test coverage detected