Refactor: Remove unnecessary C wrapper for GPUBatch class

Similar to fe76d8c946

Pull Request: https://projects.blender.org/blender/blender/pulls/119898
This commit is contained in:
Hans Goudey
2024-03-26 03:06:25 +01:00
committed by Hans Goudey
parent 7314c86869
commit 893130e6fe
150 changed files with 1263 additions and 1218 deletions

View File

@@ -98,9 +98,9 @@ static PyObject *pygpu_batch__tp_new(PyTypeObject * /*type*/, PyObject *args, Py
return nullptr;
}
GPUBatch *batch = GPU_batch_create(GPUPrimType(prim_type.value_found),
py_vertbuf->buf,
py_indexbuf ? py_indexbuf->elem : nullptr);
blender::gpu::Batch *batch = GPU_batch_create(GPUPrimType(prim_type.value_found),
py_vertbuf->buf,
py_indexbuf ? py_indexbuf->elem : nullptr);
BPyGPUBatch *ret = (BPyGPUBatch *)BPyGPUBatch_CreatePyObject(batch);
@@ -525,7 +525,7 @@ PyTypeObject BPyGPUBatch_Type = {
/** \name Public API
* \{ */
PyObject *BPyGPUBatch_CreatePyObject(GPUBatch *batch)
PyObject *BPyGPUBatch_CreatePyObject(blender::gpu::Batch *batch)
{
BPyGPUBatch *self;