Class: OpenCL::Mem::MigrationFlags

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

Overview

Bitfield that maps the :cl_mem_migration_flags 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



1318
1319
1320
1321
1322
1323
1324
# File 'lib/opencl_ruby_ffi/opencl_ruby_ffi_base_gen.rb', line 1318

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 =
(1 << 0)
CONTENT_UNDEFINED =
(1 << 1)