yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
22ebf908f
master
layout: user-guide
Slang User's Guide
Welcome to the Slang User's Guide, an introduction to the Slang language, compiler, and API. In this guide, you will learn:
- Slang's language features, including those inherited from HLSL and additional language features to make it easy to work with shaders.
- The compiler API that controls how to assemble shaders from different pieces of code, and how they are compiled for different targets.
- The reflection API that allows the host application to query the details of shader code in order to generate the right shader kernel and to set shader parameters correctly.
Note: this documentation is still under active development. While the coverage on language features is complete, we are still working on the remaining chapters on Slang's compilation and reflection API.
<!-- RTD-TOC-START ```{toctree} :titlesonly: :hidden: Introduction <00-introduction> Getting Started with Slang <01-get-started> Conventional Language Features <02-conventional-features> Basic Convenience Features <03-convenience-features> Modules and Access Control <04-modules-and-access-control> Capabilities <05-capabilities> Interfaces and Generics <06-interfaces-generics> Automatic Differentiation <07-autodiff> Language Version <11-language-version> Compiling Code with Slang <08-compiling> Using the Reflection API <09-reflection> Supported Compilation Targets <09-targets> Link-time Specialization and Module Precompilation <10-link-time-specialization> Special Topics <a1-special-topics> Target-specific Features <a2-target-specific-features> Reference <a3-reference> ``` RTD-TOC-END -->1--- 2layout : user-guide 3--- 4 5Slang User's Guide 6============= 7 8Welcome to the Slang User's Guide, an introduction to the Slang language, compiler, and API. In this guide, you will learn: 9- Slang's language features, including those inherited from HLSL and additional language features to make it easy to work with shaders. 10- The compiler API that controls how to assemble shaders from different pieces of code, and how they are compiled for different targets. 11- The reflection API that allows the host application to query the details of shader code in order to generate the right shader kernel and to set shader parameters correctly. 12 13Note: this documentation is still under active development. While the coverage on language features is complete, we are still working on the remaining chapters on Slang's compilation and reflection API. 14 15<!-- RTD-TOC-START 16```{toctree} 17:titlesonly: 18:hidden: 19 20Introduction <00-introduction> 21Getting Started with Slang <01-get-started> 22Conventional Language Features <02-conventional-features> 23Basic Convenience Features <03-convenience-features> 24Modules and Access Control <04-modules-and-access-control> 25Capabilities <05-capabilities> 26Interfaces and Generics <06-interfaces-generics> 27Automatic Differentiation <07-autodiff> 28Language Version <11-language-version> 29Compiling Code with Slang <08-compiling> 30Using the Reflection API <09-reflection> 31Supported Compilation Targets <09-targets> 32Link-time Specialization and Module Precompilation <10-link-time-specialization> 33Special Topics <a1-special-topics> 34Target-specific Features <a2-target-specific-features> 35Reference <a3-reference> 36``` 37RTD-TOC-END -->