A shader is a small, C-based program written in a shading language. The tool we use to take advantage of this power is a shader.
Being able to filter high-quality live video on your phone is impractical or even impossible without GPU-based processing. The CPU is a generalist that has to deal with everything, while your GPU can focus on doing one thing really well, which is doing floating-point math in parallel it turns out that image processing and rendering is nothing more than doing a lot of floating-point math on the values for the pixels that render to your screen.īy effectively utilizing your GPU, you can increase graphics-rendering performance on your phone by a hundred fold, if not a thousand fold. Your phone contains two different processing units, the CPU and the GPU. There are many ways to process images on your computer or mobile phone, but by far the most efficient is effectively using your Graphics Processing Unit, or GPU. In spite of how divergent these applications are, both of these examples go through the same process from creation to rendering. Image processing can be as simple as converting a photo to grayscale and as complex as analyzing a video of a crowd for a specific person. All of these applications are used to do image processing.