Skip to content

Shader Model

Chas. Boyd edited this page Mar 10, 2019 · 4 revisions

The HLSL shader model is a versioning approach indicating which new features are added to the language. Each level allows an application or game to target a well-known set of functionality for development, and allows hardware and driver developers to target that same description for support.


Shader model versions gradually introduce new processing stages, relax constraints and introduce a superset of capabilities.

  • Shader Model 1. This was the first shader model created in DirectX. It introduced vertex and pixel shaders to the first implementation of the programmable pipeline.
  • Shader Model 2. Adds new intrinsics and increases limits on registers and instructions.
  • Shader Model 3. Adds new intrinsics and increases limits on registers and instructions.
  • Shader Model 4. This is a superset of the capabilities in Shader Model 3, except that Shader Model 4 doesn't support the features in Shader Model 1. It has been designed using a common-shader core that gives a common set of features to all programmable shaders, which are only programmable using HLSL. It adds new shader profiles to target geometry shaders.
  • Shader Model 5. This is a superset of shader model 4 and adds new resources, compute shaders and tessellation.
  • Shader Model 5.1. This is functionally very similar to Shader Model 5; the main change is more flexibility in resource selection by allowing indexing of arrays of descriptors from within a shader.
  • Shader Model 6.0. This is a superset of shader model 5.1 with some deprecated language elements and with the addition of wave intrinsics and 64-bit integers for arithmetic.
  • Shader Model 6.1. This is a superset of shader model 6.0 that adds support for SV_ViewID, barycentric semantics and the GetAttributeAtVertex intrinsic.
  • Shader Model 6.2. Adds support for float16 (as opposed to minfloat16) and denorm mode selection.
  • Shader Model 6.3. Adds support for DirectX Raytracing (DXR), including libraries and linking.
  • Shader Model 6.4. Adds low-precision packed dot product intrinsics, and support for library sub-objects to simplify raytracing.
You can’t perform that action at this time.