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, sz) ⇒ BufferRegion
constructor
Creates a new BufferRegion using the value provided by the user.
Constructor Details
#initialize(origin, sz) ⇒ BufferRegion
Creates a new BufferRegion using the value provided by the user
122 123 124 125 126 |
# File 'lib/opencl_ruby_ffi/opencl_ruby_ffi_base.rb', line 122 def initialize( origin, sz ) super() self[:origin] = origin self[:size] = sz end |