lib/opencl_ruby_ffi/Platform.rb
# Returns an Array of string corresponding to the Platform extensions
Returns an Array of string corresponding to the Platform extensions
Returns an Array of string corresponding to the Platform extensions
def extensions
      extensions_size = MemoryPointer::new( :size_t )
      error = OpenCL.clGetPlatformInfo( self, EXTENSIONS, 0, nil, extensions_size)
      error_check(error)
      ext = MemoryPointer::new( extensions_size.read_size_t )
      error = OpenCL.clGetPlatformInfo( self, EXTENSIONS, extensions_size.read_size_t, ext, nil)
      error_check(error)
      ext_string = ext.read_string
      return ext_string.split(" ")
    end
def extensions extensions_size = MemoryPointer :: new ( :size_t ) error = OpenCL . clGetPlatformInfo ( self , EXTENSIONS , 0 , nil , extensions_size ) error_check ( error ) ext = MemoryPointer :: new ( extensions_size . read_size_t ) error = OpenCL . clGetPlatformInfo ( self , EXTENSIONS , extensions_size . read_size_t , ext , nil ) error_check ( error ) ext_string = ext . read_string return ext_string . split ( " " ) end
Returns an Array of string corresponding to the Platform extensions
Returns an Array of string corresponding to the Platform extensions