diff options
Diffstat (limited to 'source/blender/python/gpu/gpu_py_framebuffer.c')
-rw-r--r-- | source/blender/python/gpu/gpu_py_framebuffer.c | 46 |
1 files changed, 42 insertions, 4 deletions
diff --git a/source/blender/python/gpu/gpu_py_framebuffer.c b/source/blender/python/gpu/gpu_py_framebuffer.c index 5cc36a7b61b..2a7857b3059 100644 --- a/source/blender/python/gpu/gpu_py_framebuffer.c +++ b/source/blender/python/gpu/gpu_py_framebuffer.c @@ -278,7 +278,14 @@ static PyObject *pygpu_framebuffer__tp_new(PyTypeObject *UNUSED(self), PyObject *depth_attachment = NULL; PyObject *color_attachements = NULL; static const char *_keywords[] = {"depth_slot", "color_slots", NULL}; - static _PyArg_Parser _parser = {"|$OO:GPUFrameBuffer.__new__", _keywords, 0}; + static _PyArg_Parser _parser = { + "|$" /* Optional keyword only arguments. */ + "O" /* `depth_slot` */ + "O" /* `color_slots` */ + ":GPUFrameBuffer.__new__", + _keywords, + 0, + }; if (!_PyArg_ParseTupleAndKeywordsFast( args, kwds, &_parser, &depth_attachment, &color_attachements)) { return NULL; @@ -365,7 +372,15 @@ static PyObject *pygpu_framebuffer_clear(BPyGPUFrameBuffer *self, PyObject *args PyObject *py_stencil = NULL; static const char *_keywords[] = {"color", "depth", "stencil", NULL}; - static _PyArg_Parser _parser = {"|$OOO:clear", _keywords, 0}; + static _PyArg_Parser _parser = { + "|$" /* Optional keyword only arguments. */ + "O" /* `color` */ + "O" /* `depth` */ + "O" /* `stencil` */ + ":clear", + _keywords, + 0, + }; if (!_PyArg_ParseTupleAndKeywordsFast(args, kwds, &_parser, &py_col, &py_depth, &py_stencil)) { return NULL; } @@ -475,7 +490,20 @@ static PyObject *pygpu_framebuffer_read_color(BPyGPUFrameBuffer *self, static const char *_keywords[] = { "x", "y", "xsize", "ysize", "channels", "slot", "format", "data", NULL}; - static _PyArg_Parser _parser = {"iiiiiIO&|$O!:read_color", _keywords, 0}; + static _PyArg_Parser _parser = { + "i" /* `x` */ + "i" /* `y` */ + "i" /* `xsize` */ + "i" /* `ysize` */ + "i" /* `channels` */ + "I" /* `slot` */ + "O&" /* `format` */ + "|$" /* Optional keyword only arguments. */ + "O!" /* `data` */ + ":read_color", + _keywords, + 0, + }; if (!_PyArg_ParseTupleAndKeywordsFast(args, kwds, &_parser, @@ -559,7 +587,17 @@ static PyObject *pygpu_framebuffer_read_depth(BPyGPUFrameBuffer *self, BPyGPUBuffer *py_buffer = NULL; static const char *_keywords[] = {"x", "y", "xsize", "ysize", "data", NULL}; - static _PyArg_Parser _parser = {"iiii|$O!:read_depth", _keywords, 0}; + static _PyArg_Parser _parser = { + "i" /* `x` */ + "i" /* `y` */ + "i" /* `xsize` */ + "i" /* `ysize` */ + "|$" /* Optional keyword only arguments. */ + "O!" /* `data` */ + ":read_depth", + _keywords, + 0, + }; if (!_PyArg_ParseTupleAndKeywordsFast( args, kwds, &_parser, &x, &y, &w, &h, &BPyGPU_BufferType, &py_buffer)) { return NULL; |