Class: OpenCL::Device::ExecCapabilities

Inherits:
Bitfield
  • Object
show all
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

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

#namesObject

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)