|
|
|
@ -59,24 +59,27 @@ constexpr VkIndexType IndexTypeMapping[]{ |
|
|
|
static_assert(VK_FORMAT_UNDEFINED == 0, "VK_FORMAT_UNDEFINED is assumed to be 0"); |
|
|
|
static_assert(VK_FORMAT_UNDEFINED == 0, "VK_FORMAT_UNDEFINED is assumed to be 0"); |
|
|
|
|
|
|
|
|
|
|
|
constexpr VkFormat VertexFormatMapping[] { |
|
|
|
constexpr VkFormat VertexFormatMapping[] { |
|
|
|
|
|
|
|
/* GCC 4.8 doesn't like just a {} for default enum values */ |
|
|
|
#define _c(input, format) VK_FORMAT_ ## format, |
|
|
|
#define _c(input, format) VK_FORMAT_ ## format, |
|
|
|
#define _s(input) {}, |
|
|
|
#define _s(input) VkFormat{}, |
|
|
|
#include "Magnum/Vk/Implementation/vertexFormatMapping.hpp" |
|
|
|
#include "Magnum/Vk/Implementation/vertexFormatMapping.hpp" |
|
|
|
#undef _s |
|
|
|
#undef _s |
|
|
|
#undef _c |
|
|
|
#undef _c |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
constexpr VkFormat PixelFormatMapping[] { |
|
|
|
constexpr VkFormat PixelFormatMapping[] { |
|
|
|
|
|
|
|
/* GCC 4.8 doesn't like just a {} for default enum values */ |
|
|
|
#define _c(input, format) VK_FORMAT_ ## format, |
|
|
|
#define _c(input, format) VK_FORMAT_ ## format, |
|
|
|
#define _s(input) {}, |
|
|
|
#define _s(input) VkFormat{}, |
|
|
|
#include "Magnum/Vk/Implementation/pixelFormatMapping.hpp" |
|
|
|
#include "Magnum/Vk/Implementation/pixelFormatMapping.hpp" |
|
|
|
#undef _s |
|
|
|
#undef _s |
|
|
|
#undef _c |
|
|
|
#undef _c |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
constexpr VkFormat CompressedPixelFormatMapping[] { |
|
|
|
constexpr VkFormat CompressedPixelFormatMapping[] { |
|
|
|
|
|
|
|
/* GCC 4.8 doesn't like just a {} for default enum values */ |
|
|
|
#define _c(input, format) VK_FORMAT_ ## format, |
|
|
|
#define _c(input, format) VK_FORMAT_ ## format, |
|
|
|
#define _s(input) {}, |
|
|
|
#define _s(input) VkFormat{}, |
|
|
|
#include "Magnum/Vk/Implementation/compressedPixelFormatMapping.hpp" |
|
|
|
#include "Magnum/Vk/Implementation/compressedPixelFormatMapping.hpp" |
|
|
|
#undef _s |
|
|
|
#undef _s |
|
|
|
#undef _c |
|
|
|
#undef _c |
|
|
|
|