Class: OpenCL::BufferRegion

Inherits:
FFI::Struct show all
Defined in:
lib/opencl_ruby_ffi/opencl_ruby_ffi_base.rb

Overview

Maps the :cl_buffer_region type of OpenCL

Instance Method Summary collapse

Constructor Details

#initialize(origin, sz) ⇒ BufferRegion

Creates a new BufferRegion using the value provided by the user



161
162
163
164
165
# File 'lib/opencl_ruby_ffi/opencl_ruby_ffi_base.rb', line 161

def initialize( origin, sz )
  super()
  self[:origin] = origin
  self[:size]   = sz
end