39struct std::formatter<spark::render::ShaderStage>
41 static constexpr auto parse(format_parse_context& ctx) {
return ctx.begin(); }
43 static constexpr auto format(
const spark::render::ShaderStage stage,
auto& ctx)
47 case spark::render::ShaderStage::Vertex:
48 return std::format_to(ctx.out(),
"Vertex");
49 case spark::render::ShaderStage::TessellationControl:
50 return std::format_to(ctx.out(),
"TessellationControl");
51 case spark::render::ShaderStage::TessellationEvaluation:
52 return std::format_to(ctx.out(),
"TessellationEvaluation");
53 case spark::render::ShaderStage::Geometry:
54 return std::format_to(ctx.out(),
"Geometry");
55 case spark::render::ShaderStage::Fragment:
56 return std::format_to(ctx.out(),
"Fragment");
57 case spark::render::ShaderStage::Compute:
58 return std::format_to(ctx.out(),
"Compute");
62 return std::format_to(ctx.out(),
"Other");