diff options
Diffstat (limited to 'source/blender/gpu/intern/gpu_texture.cc')
-rw-r--r-- | source/blender/gpu/intern/gpu_texture.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_texture.cc b/source/blender/gpu/intern/gpu_texture.cc index d134d718cbe..2b83b3bc28c 100644 --- a/source/blender/gpu/intern/gpu_texture.cc +++ b/source/blender/gpu/intern/gpu_texture.cc @@ -608,3 +608,20 @@ void GPU_samplers_update(void) } /** \} */ + +/* -------------------------------------------------------------------- */ +/** \name GPU texture utilities + * + * \{ */ + +size_t GPU_texture_component_len(eGPUTextureFormat tex_format) +{ + return to_component_len(tex_format); +} + +size_t GPU_texture_dataformat_size(eGPUDataFormat data_format) +{ + return to_bytesize(data_format); +} + +/** \} */ |