In some Kernels I would like to terminate the execution of the kernel in the current thread.
In HLSL there was a function clip() which ended the execution of the “shader” at that point for the given pixel.
of cause it can be done like:
I search for something like:
if(!condition) [indent]exit()[/indent] something();
Would be pretty useful.