Added KRTexture::getFormat

Child class implementations are WIP
This commit is contained in:
2023-01-10 14:20:27 -08:00
parent 503bf73d65
commit ebe5682ed5
13 changed files with 144 additions and 1 deletions

View File

@@ -409,6 +409,12 @@ Vector2i KRTextureTGA::getDimensions() const
return m_dimensions;
}
VkFormat KRTextureTGA::getFormat() const
{
// TODO - We should not automatically add the alpha channel on import
return VK_FORMAT_R8G8B8A8_SRGB;
}
std::string KRTextureTGA::getExtension()
{
return "tga";