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
Constant Summary collapse
- KERNEL =
(1 << 0)
- NATIVE_KERNEL =
(1 << 1)
Instance Method Summary collapse
-
#names ⇒ Object
Returns an Array of String representing the different flags set.
Methods inherited from Bitfield
#&, #^, #flags, #flags=, #include?, #initialize, #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
2695 2696 2697 2698 2699 2700 2701 |
# File 'lib/opencl_ruby_ffi/opencl_ruby_ffi_base_gen.rb', line 2695 def names fs = [] %w( KERNEL NATIVE_KERNEL ).each { |f| fs.push(f) if self.include?( self.class.const_get(f) ) } return fs end |