Refactor: GPU: Remove unnecessary C wrappers for textures

This is the first step into merging `DRW_gpu_wrapper.hh` into
the GPU module.

This is very similar to #119825.

Pull Request: https://projects.blender.org/blender/blender/pulls/142732
This commit is contained in:
Clément Foucault
2025-07-22 09:48:10 +02:00
parent 748958f084
commit f0254c2dcf
145 changed files with 1114 additions and 1009 deletions

View File

@@ -797,8 +797,8 @@ static PyMethodDef pygpu_framebuffer__tp_methods[] = {
# endif
#endif
/* Ideally type aliases would de-duplicate: `GPUTexture | dict[str, int | GPUTexture]`
* in this doc-string. */
/* Ideally type aliases would de-duplicate: `blender::gpu::Texture | dict[str, int |
* blender::gpu::Texture]` in this doc-string. */
PyDoc_STRVAR(
/* Wrap. */
pygpu_framebuffer__tp_doc,
@@ -809,14 +809,15 @@ PyDoc_STRVAR(
"texture is attached to the frame-buffer.\n"
" For cube map textures, layer is translated into a cube map face.\n"
"\n"
" :arg depth_slot: GPUTexture to attach or a `dict` containing keywords: "
" :arg depth_slot: blender::gpu::Texture to attach or a `dict` containing keywords: "
"'texture', 'layer' and 'mip'.\n"
" :type depth_slot: :class:`gpu.types.GPUTexture` | dict[] | None\n"
" :arg color_slots: Tuple where each item can be a GPUTexture or a `dict` "
" :type depth_slot: :class:`gpu.types.blender::gpu::Texture` | dict[] | None\n"
" :arg color_slots: Tuple where each item can be a blender::gpu::Texture or a `dict` "
"containing keywords: 'texture', 'layer' and 'mip'.\n"
" :type color_slots: :class:`gpu.types.GPUTexture` | "
"dict[str, int | :class:`gpu.types.GPUTexture`] | "
"Sequence[:class:`gpu.types.GPUTexture` | dict[str, int | :class:`gpu.types.GPUTexture`]] | "
" :type color_slots: :class:`gpu.types.blender::gpu::Texture` | "
"dict[str, int | :class:`gpu.types.blender::gpu::Texture`] | "
"Sequence[:class:`gpu.types.blender::gpu::Texture` | dict[str, int | "
":class:`gpu.types.blender::gpu::Texture`]] | "
"None\n");
PyTypeObject BPyGPUFrameBuffer_Type = {
/*ob_base*/ PyVarObject_HEAD_INIT(nullptr, 0)