KRTexture2D::getDimensions has been extended to a Vector3i and promoted to KRTexture::getDimensions
Some checks failed
CMake on multiple platforms / build (Release, cl, cl, windows-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, clang++, macos-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, clang++, ubuntu-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, gcc, g++, ubuntu-latest) (push) Has been cancelled

This commit is contained in:
2026-03-16 00:57:40 -07:00
parent 780d06883a
commit d1299ccc13
18 changed files with 40 additions and 24 deletions

View File

@@ -127,9 +127,9 @@ KRTextureKTX::~KRTextureKTX()
m_blocks.clear();
}
Vector2i KRTextureKTX::getDimensions() const
Vector3i KRTextureKTX::getDimensions() const
{
return hydra::Vector2i::Create(Vector2i::Create(m_header.pixelWidth, m_header.pixelHeight));
return hydra::Vector3i::Create(Vector3i::Create(m_header.pixelWidth, m_header.pixelHeight, m_header.pixelDepth));
}
int KRTextureKTX::getFaceCount() const