Skip to content

Arrayfire -> glium interaction possible? #278

Answered by 9prady9
nodeSpace asked this question in Q&A
Discussion options

You must be logged in to vote

@nodeSpace Yes, I believe it is completely possible to do that. However, it would require some additional helper code apart from using the libraries glium and arrayfire. arrayfire/forge essentially handles the same workflow(avoids via CPU data transfers) which is ArrayFire's graphics(OpenGL based) functionality provider.

Let's say you are using CUDA backend of ArrayFire. Have a look at the functions from forge helper header: createGLBuffer, copyToGLBuffer, releaseGLBuffer for an idea on C++ code does it. You would need similar functions in rust that are written with glium as target. I think the following steps should essentially let you handle the OpenGL interop successfully.

  1. Create a sh…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@nodeSpace
Comment options

@9prady9
Comment options

@nodeSpace
Comment options

@9prady9
Comment options

@nodeSpace
Comment options

Answer selected by 9prady9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants