class CrOpenCL::Buffer(T)

Defined in:

crOpenCL/buffer.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.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


[View source]

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) #

[View source]

Instance Method Detail

def finalize #

[View source]
def get(queue : CommandQueue, hostbuf : Array(T), *, blocking : Bool, event : Event | Nil = nil, event_wait_list : Array(Event) | Nil = nil) #

[View source]
def get(queue : CommandQueue, hostbuf : Array(T), *, event : Event | Nil = nil, event_wait_list : Array(Event) | Nil = nil) #

[View source]
def get(queue : CommandQueue, *, event : Event | Nil = nil, event_wait_list : Array(Event) | Nil = nil) #

[View source]
def set(queue : CommandQueue, *, hostbuf : Array(T), blocking = false, event : Event | Nil = nil, event_wait_list : Array(Event) | Nil = nil) #

[View source]
def set(queue : CommandQueue, *, blocking = false, event : Event | Nil = nil, event_wait_list : Array(Event) | Nil = nil) #

[View source]
def to_unsafe #

[View source]