lib/opencl_ruby_ffi/CommandQueue.rb
# Returns the Device associated to the CommandQueue
Returns the Device associated to the CommandQueue
Returns the Device associated to the CommandQueue
def device
      ptr = MemoryPointer::new( Device )
      error = OpenCL.clGetCommandQueueInfo(self, DEVICE, Device.size, ptr, nil)
      error_check(error)
      return Device::new( ptr.read_pointer )
    end
def device ptr = MemoryPointer :: new ( Device ) error = OpenCL . clGetCommandQueueInfo ( self , DEVICE , Device . size , ptr , nil ) error_check ( error ) return Device :: new ( ptr . read_pointer ) end
Returns the Device associated to the CommandQueue
Returns the Device associated to the CommandQueue