|
Beginner OpenCL ExamplesOpenCL Beginners examples - Clear & Update BufferThe following are two very simple OpenCL kernels , intended to be used as beginner's tutorial / study examples. They show a simple way of clearing and updating the image buffer. They both are setup to take an image input, one simply clears the image buffer to a constant colour, variables for which can be changed in the code. The other takes the same image input , reads that image prior to applying whatever argument one has given to be done prior to updating the buffer. In this case the argument is set to brightness.
|