nshaderc

所属分类:DirectX
开发工具:C++
文件大小:408KB
下载次数:0
上传日期:2022-09-14 17:18:18
上 传 者sh-1993
说明:  用于bgfx的新替换着色器编译器
(New replacement shader compiler for bgfx)

文件列表:
CMakeLists.txt (1050, 2022-09-15)
config (0, 2022-09-15)
config\init-mac.sh (94, 2022-09-15)
config\init-win.bat (63, 2022-09-15)
deps (0, 2022-09-15)
deps\ShaderTranspiler (0, 2022-09-15)
deps\cxxopts (0, 2022-09-15)
deps\cxxopts\CMakeLists.txt (4430, 2022-09-15)
deps\cxxopts\LICENSE (1055, 2022-09-15)
deps\cxxopts\cxxopts-config.cmake.in (114, 2022-09-15)
deps\cxxopts\include (0, 2022-09-15)
deps\cxxopts\include\cxxopts.hpp (42643, 2022-09-15)
deps\cxxopts\src (0, 2022-09-15)
deps\cxxopts\src\CMakeLists.txt (1212, 2022-09-15)
deps\cxxopts\src\example.cpp (4831, 2022-09-15)
deps\cxxopts\test (0, 2022-09-15)
deps\cxxopts\test\CMakeLists.txt (1359, 2022-09-15)
deps\cxxopts\test\add-subdirectory-test (0, 2022-09-15)
deps\cxxopts\test\add-subdirectory-test\CMakeLists.txt (267, 2022-09-15)
deps\cxxopts\test\catch.hpp (377366, 2022-09-15)
deps\cxxopts\test\find-package-test (0, 2022-09-15)
deps\cxxopts\test\find-package-test\CMakeLists.txt (258, 2022-09-15)
deps\cxxopts\test\link_a.cpp (62, 2022-09-15)
deps\cxxopts\test\link_b.cpp (23, 2022-09-15)
deps\cxxopts\test\main.cpp (47, 2022-09-15)
deps\cxxopts\test\options.cpp (18892, 2022-09-15)
deps\fmt (0, 2022-09-15)
deps\fmt\CMakeLists.txt (15002, 2022-09-15)
deps\fmt\CONTRIBUTING.md (710, 2022-09-15)
deps\fmt\ChangeLog.rst (190305, 2022-09-15)
deps\fmt\LICENSE.rst (1408, 2022-09-15)
... ...

# nshaderc A work-in-progress replacement shader compiler for bgfx. It is not backwards-compatible with the existing bgfx shader compiler. **Goals** 1. To take only standard GLSL as input 2. To not rely on macros or other hacks for feature support 3. To generate readable source that matches the original input as closely as possible for easier shader source debugging 4. To be linkable as a library for runtime shader compilation **Non-goals** 1. To support the DX9, NVN, and PSSL backends 2. To support legacy compilers or C++ versions 3. To be backwards-compatibile with the existing bgfx shader compiler **Progress** - [x] Metal - [ ] Metal Binary - [ ] Vulkan - [ ] OpenGL - [ ] OpenGL ES - [ ] DX9 - [ ] DX11 - [ ] DX12 ### Usage Run `nshaderc --help` for a menu of options. To specify the compatibility version, supply the major and minor versions in one integer. For example, for Metal 2.1, use 21, for DirectX Shader Model 5.1, use 51, and for Vulkan 1.3, use 13. ### Building Clone recursive to get all submodules: ``` git clone https://github.com/Ravbug/nshaderc --depth=1 --recurse-submodules ``` Then build with cmake: ``` mkdir build cd build cmake -DCMAKE_BUILD_TYPE=Release .. ```

近期下载者

相关文件


收藏者