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