diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-09-08 04:22:35 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-09-08 05:15:50 +0300 |
commit | 33b25b6a9e86082a40a24b14bb0a6aad708dfb11 (patch) | |
tree | b894bf4971554bc6fe07af6efb58bfd22e7fc59a /source/blender/gpu/intern/gpu_texture_private.hh | |
parent | a30ad3634d2ed489d0c285b2ea77bc1c69e23826 (diff) |
GPUTexture: Remove unused functions and avoid GPU_texture_opengl_bindcode
This is a cleanup.
Diffstat (limited to 'source/blender/gpu/intern/gpu_texture_private.hh')
-rw-r--r-- | source/blender/gpu/intern/gpu_texture_private.hh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_texture_private.hh b/source/blender/gpu/intern/gpu_texture_private.hh index d237540f654..19022b228b2 100644 --- a/source/blender/gpu/intern/gpu_texture_private.hh +++ b/source/blender/gpu/intern/gpu_texture_private.hh @@ -241,6 +241,20 @@ class Texture { virtual bool init_internal(GPUVertBuf *vbo) = 0; }; +/* Syntacting suggar. */ +static inline GPUTexture *wrap(Texture *vert) +{ + return reinterpret_cast<GPUTexture *>(vert); +} +static inline Texture *unwrap(GPUTexture *vert) +{ + return reinterpret_cast<Texture *>(vert); +} +static inline const Texture *unwrap(const GPUTexture *vert) +{ + return reinterpret_cast<const Texture *>(vert); +} + #undef DEBUG_NAME_LEN inline size_t to_bytesize(eGPUTextureFormat format) |