libsdl-org / SDL_shadercross

Shader translation library for SDL's GPU API.
zlib License
57 stars 18 forks source link

Tags for the Main Branch and Full Releases #50

Closed scottfoxyt closed 1 week ago

scottfoxyt commented 1 week ago

Tags for the main branch and full releases would help immensely with using tools like CMake's FetchContent module.

Before

fetchcontent_declare(SDL_gpu_shadercross
  GIT_REPOSITORY https://github.com/libsdl-org/SDL_gpu_shadercross
  GIT_TAG 3385fb5c8b802abe8208ece01ffee6b5ef743867 # SHA of a commit, tedious when updates are frequent
  GIT_PROGRESS TRUE
)
set(SDLGPUSHADERCROSS_VENDORED ON)
fetchcontent_makeavailable(SDL_gpu_shadercross)

After

fetchcontent_declare(SDL_gpu_shadercross
  GIT_REPOSITORY https://github.com/libsdl-org/SDL_gpu_shadercross
  GIT_TAG main # Tag of the main branch
  GIT_PROGRESS TRUE
)
set(SDLGPUSHADERCROSS_VENDORED ON)
fetchcontent_makeavailable(SDL_gpu_shadercross)
fetchcontent_declare(SDL_gpu_shadercross
  GIT_REPOSITORY https://github.com/libsdl-org/SDL_gpu_shadercross
  GIT_TAG release-3.0 # Tag of a hypothetical 3.0 release
  GIT_PROGRESS TRUE
)
set(SDLGPUSHADERCROSS_VENDORED ON)
fetchcontent_makeavailable(SDL_gpu_shadercross)
thatcosmonaut commented 1 week ago

I don't really understand. You can already use the main branch if you want. We're not going to be tagging a release until this has been at least somewhat battle-tested.

scottfoxyt commented 1 week ago

Someone in the Discord just showed me that, my bad! I blame the CMake documentation.