Class: OpenCL::BufferRegion

Inherits:
Struct
  • Object
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



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