HLSL: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
Line 11: Line 11:
'''Direct3D 11''' shaders can be designed on Shader Model 5.
'''Direct3D 11''' shaders can be designed on Shader Model 5.


'''Direct3D 12''' shaders can be designed on Shader Model 6.
'''Direct3D 12''' shaders can be designed on Shader Model 5 (DX Feature Level 11.0), 6 and later.


[https://msdn2.microsoft.com/en-us/library/bb509561.aspx Microsoft HLSL website]
[https://msdn2.microsoft.com/en-us/library/bb509561.aspx Microsoft HLSL website]

Revision as of 00:27, 25 August 2023

English (en)Русский (ru)中文 (zh)Translate (Translate)

Stub

This article or section is a stub. You can help by expanding it.

The Source Engine uses the C-style HLSL (High Level Shading Language) for shaders. There is another language called CG (Which stands for 'C for Graphics'), which was developed alongside HLSL by NVIDIA. Cg is so similar that most Cg shaders can be quickly and easily ported to HLSL.

Direct3D Versions and Shader Models

Direct3D 9 shaders can be designed using any of the following: Shader Model 1, 2 and 3. It should be noted that there are versions 2.0a and 2.0b which are optimized for specific vendor graphics cards.

Direct3D 10 shaders can only be designed on Shader Model 4.

Direct3D 11 shaders can be designed on Shader Model 5.

Direct3D 12 shaders can be designed on Shader Model 5 (DX Feature Level 11.0), 6 and later.

Microsoft HLSL website