Class: OpenCL::Mem::MigrationFlagsINTEL

Inherits:
Bitfield
  • Object
show all
Defined in:
lib/opencl_ruby_ffi/intel/unified_shared_memory_preview.rb

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



198
199
200
201
202
203
204
# File 'lib/opencl_ruby_ffi/intel/unified_shared_memory_preview.rb', line 198

def names
  fs = []
  %w( HOST CONTENT_UNDEFINED ).each { |f|
    fs.push(f) if self.include?( self.class.const_get(f) )
  }
  return fs
end

Constant Summary collapse

HOST_INTEL =
(1 << 0)
CONTENT_UNDEFINED_INTEL =
(1 << 1)