Language Syntax

HLSL shaders are made up of variables, and functions, which in turn are made up of statements. The language syntax documents how to define and declare variables, add flow control so that shaders can make runtime decisions based on variables, and write custom functions.

Related topics

Reference for HLSL