MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / to_string

Function to_string

samples/performance/msaa/msaa.cpp:31–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29namespace
30{
31const std::string to_string(VkSampleCountFlagBits count)
32{
33 switch (count)
34 {
35 case VK_SAMPLE_COUNT_1_BIT:
36 return "No MSAA";
37 case VK_SAMPLE_COUNT_2_BIT:
38 return "2X MSAA";
39 case VK_SAMPLE_COUNT_4_BIT:
40 return "4X MSAA";
41 case VK_SAMPLE_COUNT_8_BIT:
42 return "8X MSAA";
43 case VK_SAMPLE_COUNT_16_BIT:
44 return "16X MSAA";
45 case VK_SAMPLE_COUNT_32_BIT:
46 return "32X MSAA";
47 case VK_SAMPLE_COUNT_64_BIT:
48 return "64X MSAA";
49 default:
50 return "Unknown";
51 }
52}
53
54const std::string to_string(VkResolveModeFlagBits mode)
55{

Callers 9

draw_guiMethod · 0.70
~PipelineCacheMethod · 0.50
draw_guiMethod · 0.50
create_render_contextMethod · 0.50
create_render_targetMethod · 0.50
load_sceneMethod · 0.50
create_textureMethod · 0.50
load_sceneMethod · 0.50
create_textureMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected