HLSL
HLSL (High-Level Shading Language) is Microsoft's shader language for DirectX. It programs the GPU to render advanced graphics in Windows and Xbox games, and is also widely used in engines like Unity and Unreal.
- Creado por Microsoft
- Año 2002
- Paradigma: Shaders · parallel (GPU)
- Extensiones: .hlsl, .fx
Para qué se usa
- DirectX games
- Xbox/Windows graphics
- Shaders in Unity/Unreal
A favor
- DirectX standard
- High-quality graphics
- Built into engines
En contra
- Tied to Microsoft/DirectX
- Shaders only
- Technical curve
Ecosistema
- DirectX
- Direct3D
- Unity
- Unreal
Ejemplo
float4 main() : SV_Target {
return float4(1, 0, 0, 1);
}