This tutorial computes Conway’s Game of Life in a custom GPU shader.

The IRenderEffect API is used to implement a custom GPU shader. This API is a minimal wrapper around the binary shaders that are output by the native shader authoring workflows. It provides low-level access to the functions (DirectX, OpenGL, Vulkan) that are required for GPU pipeline setup.

How to use

Press and drag the left mouse button to scroll around. Since the state of all life is present solely on the GPU, resetting the graphics context (see Graphics Context Chooser GUI component) will reset all life, too.

After a couple of seconds, life will begin to collide and the simulation will degrade to oscillating pseudo-life in a matter of minutes.