Class: OpenCL::BufferRegion
- Defined in:
- lib/opencl_ruby_ffi/opencl_ruby_ffi_base.rb
Overview
Maps the :cl_buffer_region type of OpenCL
Instance Method Summary collapse
-
#initialize(origin = nil, sz = nil) ⇒ BufferRegion
constructor
Creates a new BufferRegion using the value provided by the user.
Constructor Details
#initialize(origin = nil, sz = nil) ⇒ BufferRegion
Creates a new BufferRegion using the value provided by the user
126 127 128 129 130 131 132 133 134 |
# File 'lib/opencl_ruby_ffi/opencl_ruby_ffi_base.rb', line 126 def initialize( origin = nil, sz = nil ) if (origin.is_a?(FFI::Pointer)) super(origin) else super() self[:origin] = origin if origin self[:size] = sz if sz end end |