OpenCL Beginners examples - Clear & Update Buffer

cybero's picture

The 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.

OpenCLBuffer.jpg41.29 KB
Clear_Update_Buffer_CL.qtz53.57 KB

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

cybero's picture
Re: OpenCL Beginners examples - Clear & Update Buffer

OpenCLBuffer_0.jpg28.89 KB