String toString(const CiString &s)
Definition CiString.hpp:20
bool isLanguageVKSL(const OutputShaderVersion shaderVersion)
Returns true if the shader output version specifies VKSL (for Vulkan).
bool isLanguageGLSL(const InputShaderVersion shaderVersion)
Returns true if the shader input version specifies GLSL (for OpenGL, OpenGL ES, and Vulkan).
InputShaderVersion
Input shader version enumeration.
Definition Targets.hpp:40
@ HLSL6
HLSL Shader Model 6.0 (DirectX 12).
@ HLSL3
HLSL Shader Model 3.0 (DirectX 9).
@ Cg
Cg (C for graphics) is a slightly extended HLSL3.
@ HLSL4
HLSL Shader Model 4.0 (DirectX 10).
@ HLSL5
HLSL Shader Model 5.0 (DirectX 11).
ShaderTarget
Shader target enumeration.
Definition Targets.hpp:16
@ ComputeShader
Compute shader.
@ GeometryShader
Geometry shader.
@ TessellationEvaluationShader
Tessellation-evaluation (also Domain-) shader.
@ FragmentShader
Fragment (also Pixel-) shader.
@ TessellationControlShader
Tessellation-control (also Hull-) shader.
@ VertexShader
Vertex shader.
bool isLanguageHLSL(const InputShaderVersion shaderVersion)
Returns true if the shader input version specifies HLSL (for DirectX) or Cg (handled as dialect or HL...
OutputShaderVersion
Output shader version enumeration.
Definition Targets.hpp:67
@ GLSL400
GLSL 4.00 (OpenGL 4.0).
@ GLSL410
GLSL 4.10 (OpenGL 4.1).
@ GLSL120
GLSL 1.20 (OpenGL 2.1).
@ GLSL140
GLSL 1.40 (OpenGL 3.1).
@ ESSL320
ESSL 3.20 (OpenGL ES 3.2).
@ GLSL130
GLSL 1.30 (OpenGL 3.0).
@ GLSL450
GLSL 4.50 (OpenGL 4.5).
@ VKSL450
VKSL 4.50 (Vulkan 1.0).
@ ESSL310
ESSL 3.10 (OpenGL ES 3.1).
@ GLSL330
GLSL 3.30 (OpenGL 3.3).
@ ESSL300
ESSL 3.00 (OpenGL ES 3.0).
@ GLSL110
GLSL 1.10 (OpenGL 2.0).
@ GLSL440
GLSL 4.40 (OpenGL 4.4).
@ GLSL430
GLSL 4.30 (OpenGL 4.3).
@ GLSL150
GLSL 1.50 (OpenGL 3.2).
@ GLSL460
GLSL 4.60 (OpenGL 4.6).
@ ESSL100
ESSL 1.00 (OpenGL ES 2.0).
@ GLSL420
GLSL 4.20 (OpenGL 4.2).
bool isLanguageESSL(const OutputShaderVersion shaderVersion)
Returns true if the shader output version specifies ESSL (for OpenGL ES 2+).
const Map< String, int > & getGLSLExtensionEnumeration()
Returns the enumeration of all supported GLSL extensions as a map of extension name and version numbe...
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25
std::map< Key, T, Compare, ScopedAllocatorAdaptor< StdAllocator< Pair< const Key, T >, RawAllocator > > > Map
Map is a sorted associative container that contains key-value pairs with unique keys.
Definition Map.hpp:24