diff options
Diffstat (limited to 'source/blender/compositor/operations/COM_OpenCLKernels.cl.cpp')
-rw-r--r-- | source/blender/compositor/operations/COM_OpenCLKernels.cl.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/source/blender/compositor/operations/COM_OpenCLKernels.cl.cpp b/source/blender/compositor/operations/COM_OpenCLKernels.cl.cpp new file mode 100644 index 00000000000..4cf50823c00 --- /dev/null +++ b/source/blender/compositor/operations/COM_OpenCLKernels.cl.cpp @@ -0,0 +1,14 @@ +/// @todo: this source needs to be generated from COM_OpenCLKernels.cl. +/// not implemented yet. new data to h + +const char* sourcecode = "/// This file contains all opencl kernels for node-operation implementations \n" \ +"\n" \ +"__kernel void testKernel(__global __write_only image2d_t output){\n" \ +" int x = get_global_id(0);\n" \ +" int y = get_global_id(1);\n" \ +" int2 coords = {x, y}; \n" \ +" float4 color = {0.0f, 1.0f, 0.0f, 1.0f};\n" \ +" write_imagef(output, coords, color);\n" \ +"}\n" \ +"\0\n"; + |