12 enum class ShadowMapType :
unsigned int {
29 inline std::string shadowMapTypeToString(ShadowMapType type) {
31 case (ShadowMapType::DIRECTIONAL): {
35 case (ShadowMapType::SPOT): {
39 case (ShadowMapType::POINT): {
43 case (ShadowMapType::SIZE): {
44 Error error(
"not a valid type");
46 throw std::runtime_error(error.getFullErrorMessage());
51 Error error(
"unknown shadow map type");
53 throw std::runtime_error(error.getFullErrorMessage());