o
odinpkg.dev
packages / library / learn-sdl-gpu-temp

learn-sdl-gpu-temp

f23e6f8library

No description provided.

Apache-2.0 · updated 7 months ago

Minecraft clone made with SDL3 + odin

How to run it

  • install Odin lang if you don't have it (https://odin-lang.org/)
  • install shadercross you can just download an artifact their github workflows here: https://github.com/libsdl-org/SDL_shadercross/actions find the workflow that's the latest and passes test. download the artifact that's built for your platform. extract the bin to some folder and make sure you add the path to your ENV path so that you can call "shadercoss" in any terminal
  • get SDL3 dynamic library (.dll / .so) https://github.com/libsdl-org/SDL/releases put it somewhere where your operating system linker will find it (either next to the exe file that will be built in build/ or somewhere where your OS looks for dll's / so's )
  • run "odin run build.odin -file" to build the shaders in build/shader-binaries. you can modify the file to only build SPIRV or DXIL shaders
  • run "odin build src -out:build/speed.exe -o:speed"
  • cd into build and then run "./speed.exe"