![]() |
Clover Git
OpenCL 1.1 software implementation
|
Copying between two buffers. More...
#include <events.h>
Public Member Functions | |
CopyBufferEvent (CommandQueue *parent, MemObject *source, MemObject *destination, size_t src_offset, size_t dst_offset, size_t cb, cl_uint num_events_in_wait_list, const Event **event_wait_list, cl_int *errcode_ret) | |
Type | type () const |
Say the event is a Coal::Event::CopyBuffer one. | |
MemObject * | source () const |
Source buffer, equivalent to Coal::BufferEvent::buffer() | |
MemObject * | destination () const |
Destination buffer. | |
size_t | src_offset () const |
Offset in the source buffer, in bytes. | |
size_t | dst_offset () const |
Offset in the destination buffer, in bytes. | |
size_t | cb () const |
Number of bytes to copy. | |
Private Attributes | |
MemObject * | p_destination |
size_t | p_src_offset |
size_t | p_dst_offset |
size_t | p_cb |
CopyBufferEvent::CopyBufferEvent | ( | CommandQueue * | parent, |
MemObject * | source, | ||
MemObject * | destination, | ||
size_t | src_offset, | ||
size_t | dst_offset, | ||
size_t | cb, | ||
cl_uint | num_events_in_wait_list, | ||
const Event ** | event_wait_list, | ||
cl_int * | errcode_ret | ||
) |
Definition at line 403 of file events.cpp.
References Coal::MemObject::allocate(), Coal::CommandQueue::info(), Coal::BufferEvent::isSubBufferAligned(), Coal::MemObject::size(), and src_offset().
size_t CopyBufferEvent::cb | ( | ) | const |
Number of bytes to copy.
Definition at line 485 of file events.cpp.
References p_cb.
Referenced by worker().
MemObject * CopyBufferEvent::destination | ( | ) | const |
Destination buffer.
Definition at line 470 of file events.cpp.
References p_destination.
Referenced by worker().
size_t CopyBufferEvent::dst_offset | ( | ) | const |
Offset in the destination buffer, in bytes.
Definition at line 480 of file events.cpp.
References p_dst_offset.
MemObject * CopyBufferEvent::source | ( | ) | const |
Source buffer, equivalent to Coal::BufferEvent::buffer()
Definition at line 465 of file events.cpp.
References Coal::BufferEvent::buffer().
Referenced by worker().
size_t CopyBufferEvent::src_offset | ( | ) | const |
Offset in the source buffer, in bytes.
Definition at line 475 of file events.cpp.
References p_src_offset.
Referenced by CopyBufferEvent().
Event::Type CopyBufferEvent::type | ( | ) | const [virtual] |
Say the event is a Coal::Event::CopyBuffer
one.
Implements Coal::Event.
Definition at line 490 of file events.cpp.
References Coal::Event::CopyBuffer.
size_t Coal::CopyBufferEvent::p_cb [private] |
MemObject* Coal::CopyBufferEvent::p_destination [private] |
Definition at line 285 of file events.h.
Referenced by destination().
size_t Coal::CopyBufferEvent::p_dst_offset [private] |
Definition at line 286 of file events.h.
Referenced by dst_offset().
size_t Coal::CopyBufferEvent::p_src_offset [private] |
Definition at line 286 of file events.h.
Referenced by src_offset().