12 #ifndef hifi_TextureMeta_h
13 #define hifi_TextureMeta_h
15 #include <type_traits>
16 #include <unordered_map>
19 #include "khronos/KHR.h"
21 extern const QString TEXTURE_META_EXTENSION;
22 extern const uint16_t KTX_VERSION;
25 template<>
struct hash<khronos::gl::texture::InternalFormat> {
26 using enum_type = std::underlying_type<khronos::gl::texture::InternalFormat>::type;
27 typedef std::size_t result_type;
28 result_type operator()(khronos::gl::texture::InternalFormat
const& v)
const noexcept {
29 return std::hash<enum_type>()(
static_cast<enum_type
>(v));
35 static bool deserialize(
const QByteArray& data, TextureMeta* meta);
36 QByteArray serialize();
40 std::unordered_map<khronos::gl::texture::InternalFormat, QUrl> availableTextureTypes;
41 uint16_t version { 0 };