MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-ValidationLayers / SampleCountSize

Function SampleCountSize

layers/utils/image_utils.h:106–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106static inline uint32_t SampleCountSize(VkSampleCountFlagBits sample_count) {
107 uint32_t size = 0;
108 switch (sample_count) {
109 case VK_SAMPLE_COUNT_1_BIT:
110 size = 1;
111 break;
112 case VK_SAMPLE_COUNT_2_BIT:
113 size = 2;
114 break;
115 case VK_SAMPLE_COUNT_4_BIT:
116 size = 4;
117 break;
118 case VK_SAMPLE_COUNT_8_BIT:
119 size = 8;
120 break;
121 case VK_SAMPLE_COUNT_16_BIT:
122 size = 16;
123 break;
124 case VK_SAMPLE_COUNT_32_BIT:
125 size = 32;
126 break;
127 case VK_SAMPLE_COUNT_64_BIT:
128 size = 64;
129 break;
130 default:
131 size = 0;
132 }
133 return size;
134}

Calls

no outgoing calls

Tested by

no test coverage detected