Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/operations/COM_WriteBufferOperation.cc
| Show All 17 Lines | |||||
| #include "COM_WriteBufferOperation.h" | #include "COM_WriteBufferOperation.h" | ||||
| #include "COM_OpenCLDevice.h" | #include "COM_OpenCLDevice.h" | ||||
| #include "COM_defines.h" | #include "COM_defines.h" | ||||
| #include <cstdio> | #include <cstdio> | ||||
| namespace blender::compositor { | namespace blender::compositor { | ||||
| WriteBufferOperation::WriteBufferOperation(DataType datatype) | WriteBufferOperation::WriteBufferOperation(DataType datatype, bool add_input) | ||||
| { | { | ||||
| if (add_input) { | |||||
| this->addInputSocket(datatype); | this->addInputSocket(datatype); | ||||
| } | |||||
| this->m_memoryProxy = new MemoryProxy(datatype); | this->m_memoryProxy = new MemoryProxy(datatype); | ||||
| this->m_memoryProxy->setWriteBufferOperation(this); | this->m_memoryProxy->setWriteBufferOperation(this); | ||||
| this->m_memoryProxy->setExecutor(nullptr); | this->m_memoryProxy->setExecutor(nullptr); | ||||
| flags.is_write_buffer_operation = true; | flags.is_write_buffer_operation = true; | ||||
| } | } | ||||
| WriteBufferOperation::~WriteBufferOperation() | WriteBufferOperation::~WriteBufferOperation() | ||||
| { | { | ||||
| if (this->m_memoryProxy) { | if (this->m_memoryProxy) { | ||||
| ▲ Show 20 Lines • Show All 196 Lines • Show Last 20 Lines | |||||