reading single values from device memory

Help
2010-08-03
2012-12-21
  • ozkan kayhan
    ozkan kayhan
    2010-08-03

    ComputeCommandQueue.Read can read ComputeBuffer and ComputeImage types.

    How can i read a single integer or float value from device memory?

     
  • nythrix
    nythrix
    2010-08-03

    Well you can't. Or rather you can't do it in a single method call. You have to use a ComputeBuffer containing a single value to achieve this.