GitHunt
DA

DavidDWiser/SDL_gpu_examples

Example collection for the SDL_GPU API

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

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.

Languages

C++93.0%HLSL6.2%CMake0.5%Shell0.3%
zlib License
Created August 7, 2025
Updated August 7, 2025
DavidDWiser/SDL_gpu_examples | GitHunt