diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-02-25 03:05:09 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-03-18 22:53:17 +0300 |
commit | 3b75ca2f60f43d7450f5b1570bfedea4d1ed4b1a (patch) | |
tree | 73f9707489c8d980ba033e86d799e27b3a1c180c /source/blender/gpu/GPU_texture.h | |
parent | 374cb32d4a43b5f959f7fbd96074cfae5f265dab (diff) |
GPUTexture: Expose layer & mip count
Diffstat (limited to 'source/blender/gpu/GPU_texture.h')
-rw-r--r-- | source/blender/gpu/GPU_texture.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_texture.h b/source/blender/gpu/GPU_texture.h index 734d407d011..0c7f1c1cbd4 100644 --- a/source/blender/gpu/GPU_texture.h +++ b/source/blender/gpu/GPU_texture.h @@ -308,6 +308,8 @@ int GPU_texture_dimensions(const GPUTexture *tex); int GPU_texture_width(const GPUTexture *tex); int GPU_texture_height(const GPUTexture *tex); +int GPU_texture_layer_count(const GPUTexture *tex); +int GPU_texture_mip_count(const GPUTexture *tex); int GPU_texture_orig_width(const GPUTexture *tex); int GPU_texture_orig_height(const GPUTexture *tex); void GPU_texture_orig_size_set(GPUTexture *tex, int w, int h); |