We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 504d967 commit 5ac237eCopy full SHA for 5ac237e
AssetLoader/interface/GLTFLoader.hpp
@@ -897,6 +897,25 @@ struct Model
897
return nullptr;
898
}
899
900
+ const TextureDesc& GetTextureDesc(Uint32 Index) const
901
+ {
902
+ if (Index < Textures.size())
903
904
+ const auto& TexInfo = Textures[Index];
905
+ if (TexInfo.pTexture)
906
907
+ return TexInfo.pTexture->GetDesc();
908
+ }
909
+ else if (auto* pAtlas = (TexInfo.pAtlasSuballocation ? TexInfo.pAtlasSuballocation->GetAtlas() : nullptr))
910
911
+ return pAtlas->GetAtlasDesc();
912
913
914
+
915
+ static const TextureDesc NullDesc{};
916
+ return NullDesc;
917
918
919
Uint32 GetFirstIndexLocation() const
920
{
921
VERIFY(IndexData.IndexSize != 0, "Index size is not initialized");
0 commit comments