https://github.com/majora8120/shader-compile-script
https://github.com/majora8120/shader-compile-script
console-application csharp glsl graphics-programming script shaders spir-v vulkan
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/majora8120/shader-compile-script
- Owner: Majora8120
- License: unlicense
- Created: 2025-02-28T00:48:35.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2025-02-28T16:46:45.000Z (12 months ago)
- Last Synced: 2025-02-28T21:21:40.305Z (12 months ago)
- Topics: console-application, csharp, glsl, graphics-programming, script, shaders, spir-v, vulkan
- Language: C#
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
- License: LICENSE.txt
Awesome Lists containing this project
README
A script that scans a folder and its subfolders for shaders and compiles them to spir-v with glslc.exe.
Usage:
-d [directory path] Sets a custom search path.
-g [file path] Sets a custom glslc.exe path.
The search path defaults to "./".
The glslc path defaults to "./glslc.exe" or "C:/VulkanSDK/[latest version installed]/Bin/glslc.exe".
Outputs .spv file in the same directory as the inputted shader file.
Supported input file extensions:
.vert
.frag
.tesc
.tese
.geom
.comp
Building:
1. Install .Net SDK 8.0 or higher.
2. Build it like any basic C# console app.