{"push_id":1185055796,"size":1,"distinct_size":1,"ref":"refs/heads/vector_field","head":"bf64205c8b07c5e3ac445e374364697c956d162c","before":"81e1ddf3a2e1fd2aeca1d5606e94fd30a4d4694d","commits":[{"sha":"bf64205c8b07c5e3ac445e374364697c956d162c","author":{"name":"pradeep","email":"463c83cd838386fe5f2ade4f398ebd225ddd6796@arrayfire.com"},"message":"Vendor Neutral Header with helper copy functions\n\nThese copy functions can be used to transfer data compute\nbackend buffers to OpenGL graphics related buffers.\n\nOne of the following macros must be defined to use the helper\nfunctions with a given compute backend.\n\n- USE_FORGE_CPU_COPY_HELPERS for cpu based functionality\n- USE_FORGE_CUDA_COPY_HELPERS for cuda-opengl interop\n- USE_FORGE_OPENCL_COPY_HELPERS for opencl-opengl interop\n\nFor example, to use the header with cpu, cuda backend, you have to\ndo the following:\n\n```cpp\n\\#define USE_FORGE_CPU_COPY_HELPERS\n\\#include <ComputeCopy.h>\n```\n\nFor opencl backend, couple of additional things need to be defined\napart from above macro definition and header inclusion.\n\n```cpp\ncl_context getContext()\n{\n    // You need to return a valid cl_context object\n}\n```\n\n```cpp\ncl_command_queue getCommandQueue()\n{\n    // You need to return a valid cl_command_queue object\n}\n```","distinct":true,"url":"https://api.github.com/repos/9prady9/forge/commits/bf64205c8b07c5e3ac445e374364697c956d162c"}]}
{"actor":{"display_login":"9prady9"}}