bb2aeb4504
GPUVertBuf: Rename GPUVertBuf to VertBuf and add some getters
...
to avoid more typecasts.
2020-09-07 13:59:51 +02:00
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
4ea93029c6
GPUIndexBuf: GL backend Isolation
...
This is part of the Vulkan backend task T68990.
There is no real change, only making some code re-organisation.
This also make the IndexBuf completely abstract from outside the
GPU module.
2020-09-06 22:13:06 +02:00
a1df2fc443
Cleanup: GPU: Remove unused attr_binding and primitive code
2020-08-31 15:15:04 +02:00
41235eed1d
GPU: Avoid invalid GL API usage
...
Drawing with 0 sized buffer is prohibited.
2020-08-18 13:53:07 +02:00
fe1827df82
Fix T79782 GPU: Crash cause by shadow batch reference
...
After drawing, the batch could be reset and draw again using other
parameters.
Avoid having to track references by setting the batch pointer to NULL after
drawing.
2020-08-18 13:53:07 +02:00
9a4c019255
Cleanup: header order, trailing space
2020-08-17 12:39:08 +10:00
d52f28380b
GPU: Fix issue with MDI and recent refactor
2020-08-13 14:20:24 +02:00
f349ea5508
GPUDrawList: Fix gl error with drawing without the correct VAO bound
2020-08-13 14:20:24 +02:00
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
186abf7d3b
GPUBatch: Remove usage of gl_prim_type outside of GPU module
2020-08-13 14:20:23 +02:00
38ef35b1ed
GPUDrawList: GL backend isolation
2020-08-13 14:20:23 +02:00