yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

James Helferty (NVIDIA)Fix IR layout of 3-element vectors in cbuffers for -fvk-use-dx-layout (#7282)e37202002

master
927 B25 linesraw

layout: user-guide

Target-Specific Features

Slang can produce code for a variety of targets. When producing code for a target, Slang attempts to translate HLSL intrinsics to the closest functionality provided by the target. In addition, Slang also supports target-specific intrinsics and language extensions that allow users to make best use of the target. This chapter documents all the important target-specific behaviors.

In this chapter:

  1. SPIR-V target specific
  2. Metal target specific
  3. WGSL target specific
  4. GLSL target specific
<!-- RTD-TOC-START ```{toctree} :titlesonly: :hidden: SPIR-V target specific <a2-01-spirv-target-specific> Metal target specific <a2-02-metal-target-specific> WGSL target specific <a2-03-wgsl-target-specific> ``` RTD-TOC-END -->
1---
2layout: user-guide
3---
4
5# Target-Specific Features
6
7Slang can produce code for a variety of targets. When producing code for a target, Slang attempts to translate HLSL intrinsics to the closest functionality provided by the target. In addition, Slang also supports target-specific intrinsics and language extensions that allow users to make best use of the target. This chapter documents all the important target-specific behaviors.
8
9In this chapter:
10
111. [SPIR-V target specific](./a2-01-spirv-target-specific.md)
122. [Metal target specific](./a2-02-metal-target-specific.md)
133. [WGSL target specific](./a2-03-wgsl-target-specific.md)
144. [GLSL target specific](./a2-04-glsl-target-specific.md)
15
16<!-- RTD-TOC-START
17```{toctree}
18:titlesonly:
19:hidden:
20
21SPIR-V target specific <a2-01-spirv-target-specific>
22Metal target specific <a2-02-metal-target-specific>
23WGSL target specific <a2-03-wgsl-target-specific>
24```
25RTD-TOC-END -->