Code cleanup. fixes warnings

This commit is contained in:
Sascha Willems 2023-12-22 14:30:18 +01:00
parent 3a15ec4eb9
commit ed4c4684c5
8 changed files with 28 additions and 41 deletions

View file

@ -114,7 +114,7 @@ public:
// calculate num of mip maps
// numLevels = 1 + floor(log2(max(w, h, d)))
// Calculated as log2(max(width, height, depth))c + 1 (see specs)
texture.mipLevels = floor(log2(std::max(texture.width, texture.height))) + 1;
texture.mipLevels = static_cast<uint32_t>(floor(log2(std::max(texture.width, texture.height))) + 1);
// Get device properties for the requested texture format
VkFormatProperties formatProperties;