Class: OpenCL::Kernel::Arg::TypeQualifier
- Defined in:
- lib/opencl_ruby_ffi/opencl_ruby_ffi_base_gen.rb
Overview
Bitfield that maps the :cl_kernel_arg_type_qualifier 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
1545 1546 1547 1548 1549 1550 1551 |
# File 'lib/opencl_ruby_ffi/opencl_ruby_ffi_base_gen.rb', line 1545 def names fs = [] %w( NONE CONST RESTRICT VOLATILE PIPE ).each { |f| fs.push(f) if self.include?( self.class.const_get(f) ) } return fs end |
Constant Summary collapse
- NONE =
0
- CONST =
(1 << 0)
- RESTRICT =
(1 << 1)
- VOLATILE =
(1 << 2)
- PIPE =
(1 << 3)