-
Notifications
You must be signed in to change notification settings - Fork 781
Language Versions
Just like DirectX Shader Compiler supports multiple Shader Models that evolve over time to reflect hardware capabilities, so does it support multiple language versions. Language versions are typically named after the year of their release, and will occasionally be required to address features of specific shader models (for example, new primitive data types).
Additions of new intrinsics are typically considered shader model revisions, unless they also affect the type system.
This is the version of the HLSL language supported by fxc. It is only partially supported by the DirectX Shader Compiler, mostly with the goal of enabling basic tooling scenarios that require an abstract syntax tree.
This is the first version of the HLSL language that the DirectX Shader Compiler can compile to DXIL. It add support for int64_t and uint64_t and their vector and matrix forms. It removes the following features from 2015:
- derivative expressions (backtick operator)
- support for interfaces
- support for features only consumed by the effects framework
- strings as a primitive type
- printf/assert
This version adds enum and enum class declarations.
This version adds width-specific types for floats and ints, for 16, 32 and 64 bit widths.