You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add shader cross-compilation pipeline for Hello examples (#2)
* Add shader cross-compilation pipeline for Hello examples
- Add Examples/Shaders/ subdirectory with HLSL sources and pre-compiled
blobs (.msl, .spv) for Hello and HelloCompute examples
(DXIL stubs pending DXC-enabled shadercross)
- Add Examples/Shaders/Makefile.am with 'make shadercross' target that
regenerates all blobs via glslc (HLSL→SPIR-V) + shadercross (SPIR-V→MSL)
and shadercross (HLSL→DXIL); blobs are versioned so consumers do not
need shadercross installed
- Add ObjectivelyGPU-shadercross Xcode aggregate target with Compile
Shaders run-script build phase; input/output paths declared for
incremental rebuilds
- Add ObjectivelyGPU-shadercross VS utility project with CustomBuild
items per HLSL file; add to ObjectivelyGPU.sln
- Add RenderDevice::loadComputePipeline(), parallel to loadShader() for
compute stages; selects MSL/DXIL/SPIR-V blob by supported format
- Rewrite Hello.c and HelloCompute.c to load shaders via
RenderDevice::loadShader / loadComputePipeline with a resource path
of SDL_GetBasePath() + "Shaders"; remove all inline MSL constants
- Add Examples/Shaders/Makefile to configure.ac AC_CONFIG_FILES
- Add SUBDIRS = Shaders to Examples/Makefile.am
Entry-point convention: vs_main / fs_main / cs_main in HLSL.
SPIR-V and MSL preserve these names verbatim (only a literal 'main'
would be renamed to 'main0' by SPIRV-Cross).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
* Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
* Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
* Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
* Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
* Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
* Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
* Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
0 commit comments