Skip to content

howprice/SDL_shadercross_build

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SDL_shadercross_build

Builds static CLI SDL_shadercross executables.

Building

This project uses submodules, which have nested submodules. Clone with:

git clone git@github.com:howprice/SDL_shadercross_build.git --recurse-submodules

or after cloning:

git submodule update --init --recursive

Use the provided build.sh and build.bat scripts to build on Linux or Windows. On Windows, this script should be run from a Visual Studio Developer command prompt.

Why

  • I am working on a cross platform Windows + Linux project using SDL3 GPU
  • I want to write shaders once in HLSL and compile to run on both platforms
  • I do not want to commit shader binaries
  • Adding shadercross runtime to my application (emulator) bloats it unnecessarily; Offline shader compilation is preferable to online in my case.
  • I want to use SDL_shadercross to compile HLSL to DXIL/SPIR-V offline (at build time)
  • SDL_shadercross binaries are not officially available - I found 3rd party Windows builds but not Linux
  • There are no build instructions in the SDL_shadercross repo. Submodules are configured, but not SDL3

However, my project pulls in SDL3 via VCPKG for convenient cross platform building.

  • I want to build shadercross executables statically, so don't depend on the built VCPKG SDL3.dll/.so location.

Thanks

About

Builds static, vendored, CLI SDL (3) shadercross executables.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors