Implement MIP Level streaming helper functions

This commit is contained in:
2022-10-03 23:05:05 -07:00
parent b3019e3527
commit ab195e1323
3 changed files with 18 additions and 3 deletions

View File

@@ -129,7 +129,7 @@ bool KRTextureTGA::uploadTexture(KRDevice& device, VkImage& image, int lod_max_d
return false; // Mapped colors not supported
}
Vector2i dimensions = { pHeader->width, pHeader->height };
Vector3i dimensions = { pHeader->width, pHeader->height, 1 };
switch (pHeader->imagetype) {
case 2: // rgb