1 Reply Latest reply on Feb 12, 2013 8:11 PM by himanshu.gautam

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

    shingoxlf

      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!