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
#&, #^, #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
1008 1009 1010 1011 1012 1013 1014 |
# File 'lib/opencl_ruby_ffi/opencl_ruby_ffi_base_gen.rb', line 1008 def names fs = [] %w( KERNEL NATIVE_KERNEL ).each { |f| fs.push(f) if self.include?( self.class.const_get(f) ) } return fs end |