Shade Language compiler

一、glslang: HLSL --> AST Front End   AST-->SPIR-V Back End

https://github.com/KhronosGroup/glslang

glslangValidator.exe

二、SPIR-V Tools: provides an API and commands for processing SPIR-V modules; includes an assembler, binary module parser, disassembler, validator, and optimizer for SPIV-V

https://github.com/KhronosGroup/SPIRV-Tools

 

三、glslc, a command line compiler for GLSL/HLSL to SPIR-V ; wraps around core functionality in glslang and SPIR-V Tools; (推荐使用)

https://github.com/google/shaderc

  • a command line compiler with GCC- and Clang-like usage, for better integration with build systems
  • an API where functionality can be added without breaking existing clients
  • an API supporting standard concurrency patterns across multiple operating systems
  • increased functionality such as file #include support

 四、DirectX Shader Compiler: compile High-Level Shader Language (HLSL) programs into DirectX Intermediate Language (DXIL) representation; target the SPIR-V intermediate representation, SPIR-V CodeGen

https://github.com/Microsoft/DirectXShaderCompiler#:~:text=DirectX%20Shader%20Compiler.%20The%20DirectX%20Shader%20Compiler%20project,computation%20can%20use%20it%20to%20generate%20shader%20programs.

 

 

 

posted @ 2022-03-22 16:13  引擎之旅  阅读(125)  评论(0编辑  收藏  举报