Class: OpenCL::Device::ExecCapabilities
- Defined in:
- lib/opencl_ruby_ffi/opencl_ruby_ffi_base_gen.rb
Overview
Bitfield that maps the :cl_device_exec_capabilities type
Instance Method Summary collapse
-
#names ⇒ Object
Returns an Array of String representing the different flags set.
Methods inherited from Bitfield
#&, #^, #coerce, #flags, #flags=, #include?, #initialize, #inspect, #to_i, #to_int, #to_s, #|
Constructor Details
This class inherits a constructor from OpenCL::Bitfield
Instance Method Details
#names ⇒ Object
Returns an Array of String representing the different flags set
1054 1055 1056 1057 1058 1059 1060 |
# File 'lib/opencl_ruby_ffi/opencl_ruby_ffi_base_gen.rb', line 1054 def names fs = [] %w( KERNEL NATIVE_KERNEL ).each { |f| fs.push(f) if self.include?( self.class.const_get(f) ) } return fs end |
Constant Summary collapse
- KERNEL =
(1 << 0)
- NATIVE_KERNEL =
(1 << 1)