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 the 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