Changeset View
Changeset View
Standalone View
Standalone View
source/blender/python/gpu/gpu_py_texture.c
| Show First 20 Lines • Show All 274 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| PyDoc_STRVAR( | PyDoc_STRVAR( | ||||
| pygpu_texture_clear_doc, | pygpu_texture_clear_doc, | ||||
| ".. method:: clear(format='FLOAT', value=(0.0, 0.0, 0.0, 1.0))\n" | ".. method:: clear(format='FLOAT', value=(0.0, 0.0, 0.0, 1.0))\n" | ||||
| "\n" | "\n" | ||||
| " Fill texture with specific value.\n" | " Fill texture with specific value.\n" | ||||
| "\n" | "\n" | ||||
| " :param format: The format that describes the content of a single item.\n" | " :arg format: The format that describes the content of a single item.\n" | ||||
| " Possible values are `FLOAT`, `INT`, `UINT`, `UBYTE`, `UINT_24_8` and `10_11_11_REV`.\n" | " Possible values are `FLOAT`, `INT`, `UINT`, `UBYTE`, `UINT_24_8` and `10_11_11_REV`.\n" | ||||
| " :type type: str\n" | " :type format: str\n" | ||||
| " :arg value: sequence each representing the value to fill.\n" | " :arg value: sequence each representing the value to fill.\n" | ||||
| " :type value: sequence of 1, 2, 3 or 4 values\n"); | " :type value: sequence of 1, 2, 3 or 4 values\n"); | ||||
| static PyObject *pygpu_texture_clear(BPyGPUTexture *self, PyObject *args, PyObject *kwds) | static PyObject *pygpu_texture_clear(BPyGPUTexture *self, PyObject *args, PyObject *kwds) | ||||
| { | { | ||||
| BPYGPU_TEXTURE_CHECK_OBJ(self); | BPYGPU_TEXTURE_CHECK_OBJ(self); | ||||
| struct PyC_StringEnum pygpu_dataformat = {bpygpu_dataformat_items}; | struct PyC_StringEnum pygpu_dataformat = {bpygpu_dataformat_items}; | ||||
| union { | union { | ||||
| int i[4]; | int i[4]; | ||||
| ▲ Show 20 Lines • Show All 353 Lines • Show Last 20 Lines | |||||