2 #include "frameformat.h"
3 #include "frameformat_backend.h"
11 unsigned get_vulkan_samples(unsigned samples)
15 case 1: return VK_SAMPLE_COUNT_1_BIT;
16 case 2: return VK_SAMPLE_COUNT_2_BIT;
17 case 4: return VK_SAMPLE_COUNT_4_BIT;
18 case 8: return VK_SAMPLE_COUNT_8_BIT;
19 case 16: return VK_SAMPLE_COUNT_16_BIT;
20 case 32: return VK_SAMPLE_COUNT_32_BIT;
21 case 64: return VK_SAMPLE_COUNT_64_BIT;
22 default: throw invalid_argument("get_vulkan_samples");