Module: OpenCL::Platform::OpenCL12
- Included in:
- OpenCL::Platform
- Defined in:
- lib/opencl_ruby_ffi/Platform.rb
Instance Method Summary collapse
-
#get_extension_function(name, return_type, param_types, options = {}) ⇒ Object
Returns a Function corresponding to an extension function for a Platform.
-
#unload_compiler ⇒ Object
Unloads the Platform compiler.
Instance Method Details
#get_extension_function(name, return_type, param_types, options = {}) ⇒ Object
Returns a Function corresponding to an extension function for a Platform
Attributes
-
name
- a String representing the name of the function -
return_type
- the type of data returned by the function -
param_types
- an Array of types, corresponding to the parameters type -
options
- if given, a hash of named options that will be given to Function::new. See FFI doc for details.
166 167 168 |
# File 'lib/opencl_ruby_ffi/Platform.rb', line 166 def get_extension_function( name, return_type, param_types, = {} ) return OpenCL.get_extension_function_for_platform( self, name, return_type, param_types, ) end |
#unload_compiler ⇒ Object
Unloads the Platform compiler
171 172 173 |
# File 'lib/opencl_ruby_ffi/Platform.rb', line 171 def unload_compiler return OpenCL.unload_platform_compiler(self) end |