From b63b8ea69df1eff52d9a4cc8c4b320c1bc3f63b8 Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Wed, 11 Jul 2012 19:32:32 +0000 Subject: Compositor: Added OpenCL kernel for the directional blur. This operation always uses the full input image. In the current implementation this input image is not cached on the device. Future enhancement could be to cache it on the available opencl devices --- source/blender/compositor/operations/COM_DirectionalBlurOperation.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/blender/compositor/operations/COM_DirectionalBlurOperation.h') diff --git a/source/blender/compositor/operations/COM_DirectionalBlurOperation.h b/source/blender/compositor/operations/COM_DirectionalBlurOperation.h index 329f855871e..0ab5e9dff2d 100644 --- a/source/blender/compositor/operations/COM_DirectionalBlurOperation.h +++ b/source/blender/compositor/operations/COM_DirectionalBlurOperation.h @@ -55,5 +55,11 @@ public: bool determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output); void setData(NodeDBlurData *data) { this->m_data = data; } + + void executeOpenCL(OpenCLDevice* device, + MemoryBuffer *outputMemoryBuffer, cl_mem clOutputBuffer, + MemoryBuffer **inputMemoryBuffers, list *clMemToCleanUp, + list *clKernelsToCleanUp); + }; #endif -- cgit v1.2.3