[Vulkan] Handle MIPs with non-power-of-two dimensions
This commit is contained in:
@@ -318,6 +318,8 @@ struct TextureInfo {
|
||||
// Get the memory location of a mip. offset_x and offset_y are in blocks.
|
||||
static uint32_t GetMipLocation(const TextureInfo& src, uint32_t mip,
|
||||
uint32_t* offset_x, uint32_t* offset_y);
|
||||
static uint32_t GetMipSize(const TextureInfo& src, uint32_t mip);
|
||||
|
||||
// Get the byte size of a MIP when stored linearly.
|
||||
static uint32_t GetMipLinearSize(const TextureInfo& src, uint32_t mip);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user