diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-09-07 00:45:51 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-09-07 14:59:51 +0300 |
commit | bb2aeb4504907cab1cf8c4afc4dd1d6495c940e4 (patch) | |
tree | 550d043273b767d55ef32409e58de17cb75e724e /source/blender/gpu/intern/gpu_vertex_format.cc | |
parent | 99e3541d3b1a1fc62fcd24e9f0d12a631e4caead (diff) |
GPUVertBuf: Rename GPUVertBuf to VertBuf and add some getters
to avoid more typecasts.
Diffstat (limited to 'source/blender/gpu/intern/gpu_vertex_format.cc')
-rw-r--r-- | source/blender/gpu/intern/gpu_vertex_format.cc | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/source/blender/gpu/intern/gpu_vertex_format.cc b/source/blender/gpu/intern/gpu_vertex_format.cc index ed317b3a0df..220c48457bc 100644 --- a/source/blender/gpu/intern/gpu_vertex_format.cc +++ b/source/blender/gpu/intern/gpu_vertex_format.cc @@ -64,31 +64,6 @@ void GPU_vertformat_copy(GPUVertFormat *dest, const GPUVertFormat *src) memcpy(dest, src, sizeof(GPUVertFormat)); } -GLenum convert_comp_type_to_gl(GPUVertCompType type) -{ - switch (type) { - case GPU_COMP_I8: - return GL_BYTE; - case GPU_COMP_U8: - return GL_UNSIGNED_BYTE; - case GPU_COMP_I16: - return GL_SHORT; - case GPU_COMP_U16: - return GL_UNSIGNED_SHORT; - case GPU_COMP_I32: - return GL_INT; - case GPU_COMP_U32: - return GL_UNSIGNED_INT; - case GPU_COMP_F32: - return GL_FLOAT; - case GPU_COMP_I10: - return GL_INT_2_10_10_10_REV; - default: - BLI_assert(0); - return GL_FLOAT; - } -} - static uint comp_sz(GPUVertCompType type) { #if TRUST_NO_ONE |