Class: OpenCL::MapFlags
- Defined in:
- lib/opencl_ruby_ffi/opencl_ruby_ffi_base_gen.rb
Overview
Bitfield that maps the :cl_map_flags 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
1755 1756 1757 1758 1759 1760 1761 |
# File 'lib/opencl_ruby_ffi/opencl_ruby_ffi_base_gen.rb', line 1755 def names fs = [] %w( READ WRITE WRITE_INVALIDATE_REGION ).each { |f| fs.push(f) if self.include?( self.class.const_get(f) ) } return fs end |
Constant Summary collapse
- READ =
(1 << 0)
- WRITE =
(1 << 1)
- WRITE_INVALIDATE_REGION =
(1 << 2)