|
CeresEngine 0.2.0
A game development framework
|
Shader type enumeration. More...
#include <CeresEngine/Material/ShaderType.hpp>
Public Types | |
| enum | : UnderlyingType { Undefined = 0 , Vertex = (1u << 0u) , TesselationControl = (1u << 1u) , TesselationEvaluation = (1u << 2u) , Geometry = (1u << 3u) , Fragment = (1u << 4u) , Compute = (1u << 5u) , Task = (1u << 6u) , Mesh = (1u << 7u) , RayTracingRayGeneration = (1u << 8u) , RayTracingAnyHit = (1u << 9u) , RayTracingClosestHit = (1u << 10u) , RayTracingMiss = (1u << 11u) , RayTracingIntersection = (1u << 12u) , RayTracingCallable = (1u << 13u) } |
| using | RawType = decltype(raw) |
Public Types inherited from CeresEngine::StructEnum< ShaderType > | |
| using | UnderlyingType = UInt32 |
| using | Self = ShaderType |
Public Member Functions | |
| constexpr | ShaderType ()=default |
| constexpr | ShaderType (RawType raw) |
| constexpr | ShaderType (UnderlyingType raw) |
| StringView | toString () const noexcept |
Gets a string representation of ShaderType. | |
| ShaderStage | getStageFlag () const noexcept |
Public Member Functions inherited from CeresEngine::StructEnum< ShaderType > | |
| operator UnderlyingType () const noexcept | |
| Converts the enum into it's underlying type. | |
| void | toString (std::ostream &stream) const noexcept |
Writes a string representation of the ShaderType to the given stream. | |
Static Public Member Functions | |
| static Optional< ShaderType > | fromString (StringView string) noexcept |
Creates a new ShaderType from a string representation. | |
Static Public Member Functions inherited from CeresEngine::StructEnum< ShaderType > | |
| static Self | fromRawUnderlying (UnderlyingType underlying) noexcept |
Creates a new Self from it's underlying numeric representation. | |
Public Attributes | |
| enum CeresEngine::ShaderType:: { ... } | raw |
Static Public Attributes | |
| static constexpr auto | all |
Shader type enumeration.
| Enumerator | |
|---|---|
| Undefined | Undefined shader type. |
| Vertex | Vertex shader type. |
| TesselationControl | Tessellation control shader type (also "Hull Shader"). |
| TesselationEvaluation | Tessellation evaluation shader type (also "Domain Shader"). |
| Geometry | Geometry shader type. |
| Fragment | Fragment shader type (also "Pixel Shader"). |
| Compute | Compute shader type. |
| Task | Task shader type. |
| Mesh | Mesh shader type. |
| RayTracingRayGeneration | Ray-tracing ray generation shader. |
| RayTracingAnyHit | Ray-tracing ray hit shader. |
| RayTracingClosestHit | Ray-tracing closest ray hit shader. |
| RayTracingMiss | Ray-tracing ray miss shader. |
| RayTracingIntersection | Ray-tracing ray intersection shader. |
| RayTracingCallable | Ray-tracing callable shader. |
|
constexprdefault |
|
inlineexplicitconstexpr |
|
staticnoexcept |
Creates a new ShaderType from a string representation.
If the string value is invalid, an empty optional is returned.
|
noexcept |
|
noexcept |
Gets a string representation of ShaderType.
| enum { ... } CeresEngine::ShaderType::raw |