Module: OpenCL::Buffer::OpenCL11
- Included in:
- OpenCL::Buffer
- Defined in:
- lib/opencl_ruby_ffi/Buffer.rb
Instance Method Summary collapse
-
#create_sub_buffer(type, region, options = {}) ⇒ Object
Creates a Buffer from a sub part of the Buffer.
Instance Method Details
#create_sub_buffer(type, region, options = {}) ⇒ Object
Creates a Buffer from a sub part of the Buffer
Attributes
-
type
- type of sub-buffer to create. Only OpenCL::BUFFER_CREATE_TYPE_REGION is supported for now -
info
- inf reguarding the type of sub-buffer created. if type == OpenCL::BUFFER_CREATE_TYPE_REGION, info is a BufferRegion -
options
- a hash containing named options
Options
-
:flags
- a single or an Array of :cl_mem_flags specifying the flags to be used when creating the Buffer
90 91 92 |
# File 'lib/opencl_ruby_ffi/Buffer.rb', line 90 def create_sub_buffer( type, region, = {} ) OpenCL.create_sub_buffer( self, type, region, ) end |