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:
authorClément Foucault <foucault.clem@gmail.com>2017-05-04 22:22:41 +0300
committerClément Foucault <foucault.clem@gmail.com>2017-05-04 22:26:54 +0300
commit6f5307e74d2f4b66bd9a9e2c6259dcb0aa3dc95f (patch)
tree6fbf91b87fcbf937c91c2a65c8cb4bfbbd51c6ce /source/blender/gpu/GPU_texture.h
parent4bd2429f3519a58ccd1f93200dae42e52c45956e (diff)
Draw Manager: Add a memory stats to debug view.
Adds 2 static unsigned int to Gawain and GPUTexture to roughly keep track of the memory stats on the GPU. Stats can be view at the bottom of the GPU stats with debug value > 20.
Diffstat (limited to 'source/blender/gpu/GPU_texture.h')
-rw-r--r--source/blender/gpu/GPU_texture.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_texture.h b/source/blender/gpu/GPU_texture.h
index 834194c99bc..3cd64eb5255 100644
--- a/source/blender/gpu/GPU_texture.h
+++ b/source/blender/gpu/GPU_texture.h
@@ -143,6 +143,8 @@ typedef enum GPUTextureFormat {
GPU_DEPTH_COMPONENT16,
} GPUTextureFormat;
+unsigned int GPU_texture_memory_usage_get(void);
+
GPUTexture *GPU_texture_create_1D(int w, const float *pixels, char err_out[256]);
GPUTexture *GPU_texture_create_1D_custom(
int w, int channels, GPUTextureFormat data_type, const float *pixels, char err_out[256]);