MCPcopy Create free account
hub / github.com/crosire/reshade / to_string

Function to_string

examples/04-api_trace/api_trace_addon.cpp:23–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21 std::unordered_set<uint64_t> s_pipelines;
22
23 inline auto to_string(shader_stage value)
24 {
25 switch (value)
26 {
27 case shader_stage::vertex:
28 return "vertex";
29 case shader_stage::hull:
30 return "hull";
31 case shader_stage::domain:
32 return "domain";
33 case shader_stage::geometry:
34 return "geometry";
35 case shader_stage::pixel:
36 return "pixel";
37 case shader_stage::compute:
38 return "compute";
39 case shader_stage::amplification:
40 return "amplification";
41 case shader_stage::mesh:
42 return "mesh";
43 case shader_stage::raygen:
44 return "raygen";
45 case shader_stage::any_hit:
46 return "any_hit";
47 case shader_stage::closest_hit:
48 return "closest_hit";
49 case shader_stage::miss:
50 return "miss";
51 case shader_stage::intersection:
52 return "intersection";
53 case shader_stage::callable:
54 return "callable";
55 case shader_stage::all:
56 return "all";
57 case shader_stage::all_graphics:
58 return "all_graphics";
59 case shader_stage::all_ray_tracing:
60 return "all_raytracing";
61 default:
62 return "unknown";
63 }
64 }
65 inline auto to_string(pipeline_stage value)
66 {
67 switch (value)

Callers 15

mainFunction · 0.85
semantic_to_locationMethod · 0.85
define_entry_pointMethod · 0.85
setMethod · 0.85
finalize_preambleMethod · 0.85
write_constantMethod · 0.85
write_locationMethod · 0.85
id_to_nameMethod · 0.85
define_nameMethod · 0.85
semantic_to_locationMethod · 0.85
define_structMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected