Blender
V3.3
|
A MemoryProxy is a unique identifier for a memory buffer. A single MemoryProxy is used among all chunks of the same buffer, the MemoryBuffer only stores the data of a single chunk. More...
#include <COM_MemoryProxy.h>
Public Member Functions | |
MemoryProxy (DataType type) | |
void | set_executor (ExecutionGroup *executor) |
set the ExecutionGroup that can be scheduled to calculate a certain chunk. More... | |
ExecutionGroup * | get_executor () const |
get the ExecutionGroup that can be scheduled to calculate a certain chunk. More... | |
void | set_write_buffer_operation (WriteBufferOperation *operation) |
set the WriteBufferOperation that is responsible for writing to this MemoryProxy More... | |
WriteBufferOperation * | get_write_buffer_operation () const |
get the WriteBufferOperation that is responsible for writing to this MemoryProxy More... | |
void | allocate (unsigned int width, unsigned int height) |
allocate memory of size width x height More... | |
void | free () |
free the allocated memory More... | |
MemoryBuffer * | get_buffer () |
get the allocated memory More... | |
DataType | get_data_type () |
A MemoryProxy is a unique identifier for a memory buffer. A single MemoryProxy is used among all chunks of the same buffer, the MemoryBuffer only stores the data of a single chunk.
Definition at line 25 of file COM_MemoryProxy.h.
blender::compositor::MemoryProxy::MemoryProxy | ( | DataType | type | ) |
Definition at line 9 of file COM_MemoryProxy.cc.
void blender::compositor::MemoryProxy::allocate | ( | unsigned int | width, |
unsigned int | height | ||
) |
allocate memory of size width x height
Definition at line 17 of file COM_MemoryProxy.cc.
References blender::compositor::Default, height, result, and width.
Referenced by blender::compositor::WriteBufferOperation::init_execution().
void blender::compositor::MemoryProxy::free | ( | ) |
free the allocated memory
Definition at line 28 of file COM_MemoryProxy.cc.
Referenced by blender::compositor::WriteBufferOperation::deinit_execution().
|
inline |
get the allocated memory
Definition at line 98 of file COM_MemoryProxy.h.
Referenced by blender::compositor::ExecutionGroup::construct_consolidated_memory_buffer(), blender::compositor::WriteBufferOperation::execute_opencl_region(), blender::compositor::WriteBufferOperation::execute_region(), and blender::compositor::ReadBufferOperation::update_memory_buffer().
|
inline |
Definition at line 103 of file COM_MemoryProxy.h.
Referenced by blender::compositor::MemoryBuffer::MemoryBuffer().
|
inline |
get the ExecutionGroup that can be scheduled to calculate a certain chunk.
Definition at line 62 of file COM_MemoryProxy.h.
Referenced by blender::compositor::ReadBufferOperation::determine_canvas(), blender::compositor::ExecutionGroup::get_input_buffers_opencl(), and blender::compositor::NodeOperationBuilder::group_operations().
|
inline |
get the WriteBufferOperation that is responsible for writing to this MemoryProxy
Definition at line 80 of file COM_MemoryProxy.h.
Referenced by blender::compositor::ReadBufferOperation::determine_canvas(), blender::compositor::find_reachable_operations_recursive(), blender::compositor::DebugInfo::graphviz_system(), blender::compositor::NodeOperationBuilder::group_operations(), blender::compositor::operator<<(), and blender::compositor::ReadBufferOperation::read_resolution_from_write_buffer().
|
inline |
set the ExecutionGroup that can be scheduled to calculate a certain chunk.
group | the ExecutionGroup to set |
Definition at line 54 of file COM_MemoryProxy.h.
Referenced by blender::compositor::NodeOperationBuilder::group_operations(), and blender::compositor::WriteBufferOperation::WriteBufferOperation().
|
inline |
set the WriteBufferOperation that is responsible for writing to this MemoryProxy
operation |
Definition at line 71 of file COM_MemoryProxy.h.
Referenced by blender::compositor::WriteBufferOperation::WriteBufferOperation().