Documentation

Overview

The Slang User’s Guide

The guide provides an introduction to the Slang language and its major features, as well as the compilation and reflection API.

The Slang’s Standard Modules Reference

The reference of the standard modules that comes with the Slang compiler.

Language Specification

The formal specification of the Slang programming language. Work in progress.

Articles

The Commandline Tool Reference

There is the documentation specific to using the slangc command-line tool.

SPIR-V Specific Functionalities

Things to know when using Slang to compile to SPIR-V.

Metal Specific Functionalities

Things to know when using Slang to compile to the Metal Shading Language.

WGSL Specific Functionalities

Things to know when using Slang to compile to the WGSL.

Tutorials

Write your first slang shader

See how to write a simple compute shader in Slang and compile it for execution on Vulkan.

Using the compilation API

See how to use Slang’s compilation API to integrate the Slang compiler into your application.

Using the reflection API

See how to use Slang’s reflection API to query for parameter binding info at runtime.

Migrating to Slang from HLSL

Main things to know if you are coming to Slang as an HLSL developer.

Migrating to Slang from GLSL

Main things to know if you are coming to Slang as an GLSL developer.

Contributors

For contributors to the Slang project, the information under the docs/proposals/ directory documents all feature proposals to the Slang language or the compiler API.