AnsweredAssumed Answered

how to create and init gpu memory buff to be all 0s

Question asked by shingoxlf on Feb 12, 2013
Latest reply on Feb 12, 2013 by himanshu.gautam

Hi all, to create a GPU buffer and init it to be all 0s, what I am doing right now is:

clCreateBuffer

then

clEnqueueWriteBuffer()

copy an array of 0s to the buff


I am wondering if there is anyway to create a GPU buffer and init it to be all 0s without calling clEnqueueWriteBuffer() ?


Thanks!

Outcomes