HLSL: Difference between revisions
Jump to navigation
Jump to search
m (Added Russian language.) |
m (Translation stuff.) |
||
Line 1: | Line 1: | ||
{{ | {{lang|HLSL}} | ||
| | |||
}} | |||
{{stub}} | {{stub}} | ||
The [[Source Engine]] uses the C-style [[HLSL]] ('''H'''igh '''L'''evel '''S'''hading '''L'''anguage) for [[shader]]s. There is another language called '''[[CG]]''' (Which stands for ''''C''' for '''G'''raphics'), which was developed alongside [[HLSL]] by [[Wikipedia:NVIDIA|NVIDIA]]. Cg is so similar that most Cg shaders can be quickly and easily ported to HLSL. | The [[Source Engine]] uses the C-style [[HLSL]] ('''H'''igh '''L'''evel '''S'''hading '''L'''anguage) for [[shader]]s. There is another language called '''[[CG]]''' (Which stands for ''''C''' for '''G'''raphics'), which was developed alongside [[HLSL]] by [[Wikipedia:NVIDIA|NVIDIA]]. Cg is so similar that most Cg shaders can be quickly and easily ported to HLSL. | ||
==Direct3D Versions and Shader Models== | |||
== 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 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. | ||
Line 16: | Line 11: | ||
'''Direct3D 11''' shaders can be designed on shader model 5. | '''Direct3D 11''' shaders can be designed on shader model 5. | ||
[ | [https://msdn2.microsoft.com/en-us/library/bb509561.aspx Microsoft HLSL website] | ||
[[Category:Technical]] | [[Category:Technical]] | ||
[[Category:Glossary]] | [[Category:Glossary]] |
Revision as of 21:34, 30 August 2021
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.