lib/opencl_ruby_ffi/Mem.rb
def context
      @_context ||= begin
       ptr = MemoryPointer::new( Context )
        error = OpenCL.clGetMemObjectInfo(self, CONTEXT, Context.size, ptr, nil)
        error_check(error)
        Context::new( ptr.read_pointer )
      end
    end
# Returns the Context associated to the Mem
Returns the Context associated to the Mem
Returns the Context associated to the Mem
def context
      @_context ||= begin
       ptr = MemoryPointer::new( Context )
        error = OpenCL.clGetMemObjectInfo(self, CONTEXT, Context.size, ptr, nil)
        error_check(error)
        Context::new( ptr.read_pointer )
      end
    end
def context @_context ||= begin ptr = MemoryPointer :: new ( Context ) error = OpenCL . clGetMemObjectInfo ( self , CONTEXT , Context . size , ptr , nil ) error_check ( error ) Context :: new ( ptr . read_pointer ) end end
Returns the Context associated to the Mem
Returns the Context associated to the Mem