Skip to content

Commit

Permalink
Add KHR_mesh_quantization (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eearslya authored Oct 11, 2022
1 parent b19e66b commit 364394a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fastgltf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,11 @@ bool fg::glTF::checkAssetField() {
}

// clang-format off
constexpr std::array<std::pair<std::string_view, fastgltf::Extensions>, 3> extensionStrings = {{
constexpr std::array<std::pair<std::string_view, fastgltf::Extensions>, 4> extensionStrings = {{
{ "KHR_texture_basisu", fastgltf::Extensions::KHR_texture_basisu },
{ "KHR_texture_transform", fastgltf::Extensions::KHR_texture_transform },
{ "MSFT_texture_dds", fastgltf::Extensions::MSFT_texture_dds },
{ "KHR_mesh_quantization", fastgltf::Extensions::KHR_mesh_quantization },
}};
// clang-format on

Expand Down
1 change: 1 addition & 0 deletions src/fastgltf_parser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ namespace fastgltf {
KHR_texture_transform = 1 << 1,
KHR_texture_basisu = 1 << 2,
MSFT_texture_dds = 1 << 3,
KHR_mesh_quantization = 1 << 4,
};

constexpr Extensions operator&(Extensions a, Extensions b) noexcept {
Expand Down

0 comments on commit 364394a

Please sign in to comment.