diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-10-02 16:18:35 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-10-02 16:18:42 +0300 |
commit | 5a982b0695e831c963456fe922ff950d03ecf03b (patch) | |
tree | e179aaaca7efe058b9ef9cd2505e0c2f45f45768 /source/blender/gpu/intern/gpu_texture_private.hh | |
parent | 208b3a0472b3fb0b90132f740d8966ac386fd847 (diff) |
GPUTexture: Add GPU_texture_create_single_layer_view
This allows the creation of texture arrays from 1D/2D/Cube texture.
This is useful when the shader expect a texture array but the original
texture isn't.
Diffstat (limited to 'source/blender/gpu/intern/gpu_texture_private.hh')
-rw-r--r-- | source/blender/gpu/intern/gpu_texture_private.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_texture_private.hh b/source/blender/gpu/intern/gpu_texture_private.hh index 8521b0fd77f..b96a9b870e5 100644 --- a/source/blender/gpu/intern/gpu_texture_private.hh +++ b/source/blender/gpu/intern/gpu_texture_private.hh @@ -108,6 +108,7 @@ class Texture { bool init_buffer(GPUVertBuf *vbo, eGPUTextureFormat format); bool init_view(const GPUTexture *src, eGPUTextureFormat format, + eGPUTextureType type, int mip_start, int mip_len, int layer_start, |