lib/opencl_ruby_ffi/Image.rb
def buffer
        ptr = MemoryPointer::new( Buffer )
        error = OpenCL.clGetImageInfo(self,  BUFFER, Buffer.size, ptr, nil)
        error_check(error)
        return nil if ptr.null?
        return Buffer::new(ptr.read_pointer)
      end
# Returns the associated Buffer if any, nil otherwise
Returns the associated Buffer if any, nil otherwise
Returns the associated Buffer if any nil otherwise
def buffer
        ptr = MemoryPointer::new( Buffer )
        error = OpenCL.clGetImageInfo(self,  BUFFER, Buffer.size, ptr, nil)
        error_check(error)
        return nil if ptr.null?
        return Buffer::new(ptr.read_pointer)
      end
def buffer ptr = MemoryPointer :: new ( Buffer ) error = OpenCL . clGetImageInfo ( self , BUFFER , Buffer . size , ptr , nil ) error_check ( error ) return nil if ptr . null? return Buffer :: new ( ptr . read_pointer ) end
Returns the associated Buffer if any, nil otherwise
Returns the associated Buffer if any nil otherwise