Code cleanup. fixes warnings
This commit is contained in:
parent
3a15ec4eb9
commit
ed4c4684c5
8 changed files with 28 additions and 41 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue