o
odin.langpkg.dev
packages / library / sdl_shadercross_odin_example

sdl_shadercross_odin_example

f85ba95library

No description provided.

No license · updated 1 year ago

SDL ShaderCross Odin Example

A single file showcasing how to use SDL_ShaderCross to build shaders in a cross-platform way in the Odin language. It also acts as a simple build-system for shaders, outputting files in a basic binary format which could be used in a graphics engine. It looks for include directives in HLSL files to find out the dependency graph for shaders, and only rebuilds the necessary ones.

Build and Run

Simply run the following command: odin run build_shaders.odin -file, and it will automatically look for shaders to compile recursively from the current working directory.