Should `CommandQueue.html::enqueue_write_buffer` take a mutable buffer reference?
Closed this issue · 1 comments
vmx commented
I currently work on abstraction to make code work with both OpenCL and CUDA. The CUDA library I'm using (RustaCUDA has a similar Buffer abstraction as opencl3
.
When copying data into the device memory, the CUDA library considers the buffer to be mutable. That make sense to me, when I think about Rust semantics. The buffer on the device is mutated. Hence my question: would it make sense to change the API of CommandQueue.html::enqueue_write_buffer
to take a mutable Buffer
reference?
kenba commented
Yes Volker that makes sense.
Would you like to submit a PR for it?