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>2022-02-25 03:05:09 +0300
committerClément Foucault <foucault.clem@gmail.com>2022-03-18 22:53:17 +0300
commit3b75ca2f60f43d7450f5b1570bfedea4d1ed4b1a (patch)
tree73f9707489c8d980ba033e86d799e27b3a1c180c /source/blender/gpu/intern/gpu_texture_private.hh
parent374cb32d4a43b5f959f7fbd96074cfae5f265dab (diff)
GPUTexture: Expose layer & mip count
Diffstat (limited to 'source/blender/gpu/intern/gpu_texture_private.hh')
-rw-r--r--source/blender/gpu/intern/gpu_texture_private.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_texture_private.hh b/source/blender/gpu/intern/gpu_texture_private.hh
index ec11fab421c..2a7fc074046 100644
--- a/source/blender/gpu/intern/gpu_texture_private.hh
+++ b/source/blender/gpu/intern/gpu_texture_private.hh
@@ -208,6 +208,11 @@ class Texture {
}
}
+ int mip_count() const
+ {
+ return mipmaps_;
+ }
+
eGPUTextureFormat format_get() const
{
return format_;