|
Blender
V2.93
|
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 | setExecutor (ExecutionGroup *executor) |
| set the ExecutionGroup that can be scheduled to calculate a certain chunk. More... | |
| ExecutionGroup * | getExecutor () const |
| get the ExecutionGroup that can be scheduled to calculate a certain chunk. More... | |
| void | setWriteBufferOperation (WriteBufferOperation *operation) |
| set the WriteBufferOperation that is responsible for writing to this MemoryProxy More... | |
| WriteBufferOperation * | getWriteBufferOperation () 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 * | getBuffer () |
| get the allocated memory More... | |
| DataType | getDataType () |
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 36 of file COM_MemoryProxy.h.
| blender::compositor::MemoryProxy::MemoryProxy | ( | DataType | type | ) |
Definition at line 27 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 34 of file COM_MemoryProxy.cc.
References blender::compositor::Default, height, result, and width.
Referenced by blender::compositor::WriteBufferOperation::initExecution().
| void blender::compositor::MemoryProxy::free | ( | ) |
free the allocated memory
Definition at line 45 of file COM_MemoryProxy.cc.
Referenced by blender::compositor::WriteBufferOperation::deinitExecution().
|
inline |
get the allocated memory
Definition at line 109 of file COM_MemoryProxy.h.
Referenced by blender::compositor::ExecutionGroup::constructConsolidatedMemoryBuffer(), blender::compositor::WriteBufferOperation::executeOpenCLRegion(), blender::compositor::WriteBufferOperation::executeRegion(), and blender::compositor::ReadBufferOperation::updateMemoryBuffer().
|
inline |
Definition at line 114 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 73 of file COM_MemoryProxy.h.
Referenced by blender::compositor::ReadBufferOperation::determineResolution(), blender::compositor::ExecutionGroup::getInputBuffersOpenCL(), and blender::compositor::NodeOperationBuilder::group_operations().
|
inline |
get the WriteBufferOperation that is responsible for writing to this MemoryProxy
Definition at line 91 of file COM_MemoryProxy.h.
Referenced by blender::compositor::ReadBufferOperation::determineResolution(), blender::compositor::find_reachable_operations_recursive(), blender::compositor::NodeOperationBuilder::group_operations(), blender::compositor::operator<<(), and blender::compositor::ReadBufferOperation::readResolutionFromWriteBuffer().
|
inline |
set the ExecutionGroup that can be scheduled to calculate a certain chunk.
| group | the ExecutionGroup to set |
Definition at line 65 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 82 of file COM_MemoryProxy.h.
Referenced by blender::compositor::WriteBufferOperation::WriteBufferOperation().