Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGermano Cavalcante <germano.costa@ig.com.br>2020-03-24 18:09:39 +0300
committerGermano Cavalcante <germano.costa@ig.com.br>2020-03-24 18:13:26 +0300
commitd626ced6f1fe8284737aecdabe70b48a42563b75 (patch)
treef689357de7747f744e70c9532a6bf05b4affc9d6 /source/blender/editors/gpencil
parent28c3d952dbde6f1e911360f716cb1cdb65863b5e (diff)
GPU: Estimate a better value for the memory used
This commit adds a `mipmaps` member to the `GPUTexture` struct and also computes to the memory used by these mipmaps and the memory used for textures that are created from an external bindcode. So it solves the following inconsistencies: - The memory value for mipmaps was not being computed. - As `GPU_texture_from_bindcode` didn't call `gpu_texture_memory_footprint_add`, it brought inconsistencies to the value of the used memory, especially when the texture is freed. Differential Revision: https://developer.blender.org/D3554
Diffstat (limited to 'source/blender/editors/gpencil')
0 files changed, 0 insertions, 0 deletions