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
a1df2fc443
Cleanup: GPU: Remove unused attr_binding and primitive code
2020-08-31 15:15:04 +02:00
Clément Foucault
1804eb57fd
GPUImmediate: GL backend isolation
...
This is part of the Vulkan backend task T68990.
This is mostly a cleanup, however, there is a small change:
We don't use a special Vertex Array binding function for Immediate
anymore and just reuse the one for batches.
This might create a bit more state changes but this could be fixed
easily if it causes perf regression.
# Conflicts:
# source/blender/gpu/intern/gpu_context.cc
2020-08-31 15:14:47 +02:00
Clément Foucault
a54fb081ba
Cleanup: GPU_immediate: Change assert to BLI_assert
2020-08-31 15:10:38 +02:00
Clément Foucault
19d72175ba
GPUShaderInterface: GL backend isolation
2020-08-20 16:11:14 +02:00
Clément Foucault
14fcd46ca7
GPU: Use GPUShader setters for uniforms removing uses of ShaderInterface
2020-08-20 16:11:14 +02:00
Clément Foucault
536c2e0ec9
GPUState: Only apply state before drawing
2020-08-18 21:30:10 +02:00
Clément Foucault
216d78687d
GPUShader: GL backend isolation
2020-08-18 21:30:09 +02:00
Clément Foucault
9443da6166
GPUBatch: Merge phase and ownership flags and cleanup there usage
...
Also add new flags to communicate specific behavior to future backend.
2020-08-13 14:20:24 +02:00
Clément Foucault
854c999d82
GPUShader: Change shader state tracking to be part of the GPUContext
...
This remove the use of batch->program and replace it with batch->shader.
This will allow GL abstraction latter.
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
Campbell Barton
8a8c3e0972
Merge branch 'blender-v2.90-release' into master
2020-08-06 19:01:07 +10:00
Clément Foucault
19175f4757
GPUBatch & GPUImmediate: Use GPUShader instead of using raw OGL handle
2020-07-30 13:28:50 +02:00
Clément Foucault
959529d4b8
GPU: Move gpu_vertex_format.c to C++
2020-07-29 15:03:02 +02:00
Clément Foucault
c276ef61d4
GPU: Move gpu_immediate.c to C++
2020-07-26 17:28:48 +02:00