Sybren A. Stüvel
16732def37
Cleanup: Clang-Tidy modernize-use-nullptr
...
Replace `NULL` with `nullptr` in C++ code.
No functional changes.
2020-11-06 18:08:25 +01:00
Sergey Sharybin
a331d5c992
Cleanup: Clang-Tidy, modernize-redundant-void-arg
2020-11-06 13:40:46 +01:00
Campbell Barton
28ebe827e6
Cleanup: trailing space
2020-10-02 11:59:16 +10:00
Clément Foucault
2e4569abbc
Fix remaining GL calls/type preventing from building due to recent cleanup
2020-09-12 19:48:52 +02:00
Clément Foucault
aa32e7a2f3
Cleanup: GPUVertBuf: Replace TRUST_NO_ONE by BLI_asserts and ifdef DEBUG
2020-09-07 13:59:51 +02:00
Clément Foucault
c38debd39f
GPUVertBuf: GL Backend Isolation
...
Part of the Vulkan port T68990
This makes a few changes in how the data is being handled by the
backend to allow more flexibility in the future.
The overall code logic is left unchanged.
2020-09-07 13:59:51 +02:00
Clément Foucault
bb2aeb4504
GPUVertBuf: Rename GPUVertBuf to VertBuf and add some getters
...
to avoid more typecasts.
2020-09-07 13:59:51 +02:00
Clément Foucault
7ffff04e49
GPUVertBuf: Make GPUVertBuf private to the GPU module
...
This is just a cleanup to isolate the internals of the vertbuf.
This adds some getters to avoid refactor of existing code.
2020-09-06 22:13:06 +02:00
Clément Foucault
00a3c297d2
GPUVertBuf: Add handle refcount
...
A handle refcount is here to avoid freeing of the GPUVertBuf datablock
if it is still referenced somewhere else.
This does not prevent deleting the actual data. This is to avoid too
much zombie data usage.
This is in order to avoid most hacks inside `draw_instance_data.c`.
2020-08-13 14:20:23 +02:00
Clément Foucault
f1b1a0745f
Cleanup: GPU: Change gpu_context_private.h to C++ only header
2020-08-08 03:05:39 +02:00
Clément Foucault
f84342d7e1
GPU: Move gpu_vertex_buffer.c to C++
2020-07-29 15:03:02 +02:00