HLSL: Difference between revisions

From David's Wiki
No edit summary
 
(One intermediate revision by the same user not shown)
Line 13: Line 13:
===Geometry Shader===
===Geometry Shader===
===Fragment Shader===
===Fragment Shader===
[[Category:Programming languages]]
[[Category:GPU Programming languages]]

Latest revision as of 16:46, 31 January 2022

High Level Shading Language (HLSL) is the shading language used in DirectX. It is used in Unity and Unreal.

Usage

Minor differences between GLSL and HLSL

  • float4 instead of vec4. This is odd since OpenCL also uses float4.
  • lerp instead of mix.

Graphics Pipeline

DirectX12 Pipeline

Vertex Shader

Tesselation Shader

Geometry Shader

Fragment Shader