|
|
|
|
@ -204,6 +204,9 @@ namespace GL {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
enum class CompressedPixelFormat { RGBS3tcDxt1 = 21 }; |
|
|
|
|
/* Clang -Wmissing-prototypes warns otherwise, even though this is in an
|
|
|
|
|
anonymous namespace */ |
|
|
|
|
Vector3i compressedPixelFormatBlockSize(CompressedPixelFormat); |
|
|
|
|
Vector3i compressedPixelFormatBlockSize(CompressedPixelFormat format) { |
|
|
|
|
CORRADE_INTERNAL_ASSERT(format == CompressedPixelFormat::RGBS3tcDxt1); |
|
|
|
|
#ifdef CORRADE_NO_ASSERT |
|
|
|
|
@ -211,6 +214,7 @@ namespace GL {
|
|
|
|
|
#endif |
|
|
|
|
return {4, 4, 1}; |
|
|
|
|
} |
|
|
|
|
UnsignedInt compressedPixelFormatBlockDataSize(CompressedPixelFormat); |
|
|
|
|
UnsignedInt compressedPixelFormatBlockDataSize(CompressedPixelFormat format) { |
|
|
|
|
CORRADE_INTERNAL_ASSERT(format == CompressedPixelFormat::RGBS3tcDxt1); |
|
|
|
|
#ifdef CORRADE_NO_ASSERT |
|
|
|
|
@ -234,6 +238,9 @@ namespace Vk {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
enum class CompressedPixelFormat { Astc5x5x4RGBAF = 111 }; |
|
|
|
|
/* Clang -Wmissing-prototypes warns otherwise, even though this is in an
|
|
|
|
|
anonymous namespace */ |
|
|
|
|
Vector3i compressedPixelFormatBlockSize(CompressedPixelFormat); |
|
|
|
|
Vector3i compressedPixelFormatBlockSize(CompressedPixelFormat format) { |
|
|
|
|
#ifdef CORRADE_NO_ASSERT |
|
|
|
|
static_cast<void>(format); |
|
|
|
|
@ -241,6 +248,7 @@ namespace Vk {
|
|
|
|
|
CORRADE_INTERNAL_ASSERT(format == CompressedPixelFormat::Astc5x5x4RGBAF); |
|
|
|
|
return {5, 5, 4}; |
|
|
|
|
} |
|
|
|
|
UnsignedInt compressedPixelFormatBlockDataSize(CompressedPixelFormat); |
|
|
|
|
UnsignedInt compressedPixelFormatBlockDataSize(CompressedPixelFormat format) { |
|
|
|
|
#ifdef CORRADE_NO_ASSERT |
|
|
|
|
static_cast<void>(format); |
|
|
|
|
|