TheSpydog/SDL_gpu_examples

Example collection for the SDL_GPU API

C++

553

158 commits

updated Aug 1, 2026

See the code

README

Collection of examples to demonstrate the usage of the SDL_GPU API.

To clone and build:

git clone https://github.com/libsdl-org/SDL
cd SDL
mkdir build
cd build
cmake ..
make

cd ../..
git clone https://github.com/TheSpydog/SDL_gpu_examples
cd SDL_gpu_examples
mkdir build
cd build
cmake .. -DSDL3_DIR="full/path/to/SDL/build"

then run make or your favorite IDE.

The shaders in the repository are written in HLSL and offline compiled from Content/Shaders/Source to Content/Shaders/Compiled using SDL_shadercross. If you want to build the shaders yourself, you must install SDL_shadercross, navigate to the shader source directory, and call compile.sh.

TheSpydog/SDL_gpu_examples

Example collection for the SDL_GPU API

C++

553

158 commits

updated Aug 1, 2026

See the code

README

Collection of examples to demonstrate the usage of the SDL_GPU API.

To clone and build:

git clone https://github.com/libsdl-org/SDL
cd SDL
mkdir build
cd build
cmake ..
make

cd ../..
git clone https://github.com/TheSpydog/SDL_gpu_examples
cd SDL_gpu_examples
mkdir build
cd build
cmake .. -DSDL3_DIR="full/path/to/SDL/build"

then run make or your favorite IDE.

The shaders in the repository are written in HLSL and offline compiled from Content/Shaders/Source to Content/Shaders/Compiled using SDL_shadercross. If you want to build the shaders yourself, you must install SDL_shadercross, navigate to the shader source directory, and call compile.sh.

Significant stargazers

Mārtiņš Možeiko

1,244 followers · starred Jul 2024

larpon

169 followers · starred Apr 2025

Amer Koleci

414 followers · starred Oct 2024

Vittorio Romeo

1,102 followers · starred Mar 2025