Welcome to mirror list, hosted at ThFree Co, Russian Federation.

COM_OpenCLKernels.cl.cpp « operations « compositor « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: adaba8e333070c01f558057b57f70550c7858f55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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";