class CrOpenCL::Buffer(T)
- CrOpenCL::Buffer(T)
- Reference
- Object
Defined in:
crOpenCL/buffer.crConstructors
-
.new(context : Context, access : Memory, *, hostbuf : Array(T) | Nil = nil, length = 0)
If access allows reading, and the buffer has not been copied, it will be copied directly prior to kernel launch on the kernel's command queue
Class Method Summary
Instance Method Summary
- #finalize
- #get(queue : CommandQueue, hostbuf : Array(T), *, blocking : Bool, event : Event | Nil = nil, event_wait_list : Array(Event) | Nil = nil)
- #get(queue : CommandQueue, hostbuf : Array(T), *, event : Event | Nil = nil, event_wait_list : Array(Event) | Nil = nil)
- #get(queue : CommandQueue, *, event : Event | Nil = nil, event_wait_list : Array(Event) | Nil = nil)
- #set(queue : CommandQueue, *, hostbuf : Array(T), blocking = false, event : Event | Nil = nil, event_wait_list : Array(Event) | Nil = nil)
- #set(queue : CommandQueue, *, blocking = false, event : Event | Nil = nil, event_wait_list : Array(Event) | Nil = nil)
- #to_unsafe
Constructor Detail
If access allows reading, and the buffer has not been copied, it will be copied directly prior to kernel launch on the kernel's command queue
Class Method Detail
def self.enqueue_copy(queue : CommandQueue, hostbuf : Slice(T), devbuf : Buffer, length : UInt64, direction : Transfer, *, blocking = false, event : Event | Nil = nil, event_wait_list : Array(Event) | Nil = nil)
#
Instance Method Detail
def get(queue : CommandQueue, hostbuf : Array(T), *, blocking : Bool, event : Event | Nil = nil, event_wait_list : Array(Event) | Nil = nil)
#
def get(queue : CommandQueue, hostbuf : Array(T), *, event : Event | Nil = nil, event_wait_list : Array(Event) | Nil = nil)
#
def get(queue : CommandQueue, *, event : Event | Nil = nil, event_wait_list : Array(Event) | Nil = nil)
#
def set(queue : CommandQueue, *, hostbuf : Array(T), blocking = false, event : Event | Nil = nil, event_wait_list : Array(Event) | Nil = nil)
#
def set(queue : CommandQueue, *, blocking = false, event : Event | Nil = nil, event_wait_list : Array(Event) | Nil = nil)
#