move position of GetMipLevel functions.

This commit is contained in:
2020-10-25 15:07:41 +08:00
parent 2c5fd977f2
commit 7f71b50316
3 changed files with 11 additions and 16 deletions

View File

@@ -87,6 +87,16 @@ enum ImageTiling
Linear
};//
inline const uint32_t GetMipLevel(const VkExtent2D &ext)
{
return hgl::GetMipLevel(ext.width,ext.height);
}
inline const uint32_t GetMipLevel(const VkExtent3D &ext)
{
return hgl::GetMipLevel(ext.width,ext.height,ext.depth);
}
enum IndexType
{
U16=0,