Blender
V3.3
|
#include <Python.h>
#include "BLI_string.h"
#include "GPU_context.h"
#include "GPU_uniform_buffer.h"
#include "../generic/py_capi_utils.h"
#include "gpu_py.h"
#include "gpu_py_uniformbuffer.h"
Go to the source code of this file.
Functions | |
Public API | |
PyObject * | BPyGPUUniformBuf_CreatePyObject (GPUUniformBuf *ubo) |
GPUUniformBuf Common Utilities | |
#define | BPYGPU_UNIFORMBUF_CHECK_OBJ(bpygpu) |
static int | pygpu_uniformbuffer_valid_check (BPyGPUUniformBuf *bpygpu_ub) |
GPUUniformBuf Type | |
static PyGetSetDef | pygpu_uniformbuffer__tp_getseters [] |
static struct PyMethodDef | pygpu_uniformbuffer__tp_methods [] |
PyTypeObject | BPyGPUUniformBuf_Type |
static PyObject * | pygpu_uniformbuffer__tp_new (PyTypeObject *UNUSED(self), PyObject *args, PyObject *kwds) |
PyDoc_STRVAR (pygpu_uniformbuffer_update_doc, ".. method:: update(data)\n" "\n" " Update the data of the uniform buffer object.\n") | |
static PyObject * | pygpu_uniformbuffer_update (BPyGPUUniformBuf *self, PyObject *obj) |
static void | BPyGPUUniformBuf__tp_dealloc (BPyGPUUniformBuf *self) |
PyDoc_STRVAR (pygpu_uniformbuffer__tp_doc, ".. class:: GPUUniformBuf(data)\n" "\n" " This object gives access to off uniform buffers.\n" "\n" " :arg data: Data to fill the buffer.\n" " :type data: object exposing buffer interface\n") | |
This file defines the uniform buffer functionalities of the 'gpu' module
bpygpu_
for local API.BPyGPU
for public API. Definition in file gpu_py_uniformbuffer.c.
#define BPYGPU_UNIFORMBUF_CHECK_OBJ | ( | bpygpu | ) |
Definition at line 44 of file gpu_py_uniformbuffer.c.
|
static |
Definition at line 141 of file gpu_py_uniformbuffer.c.
References GPU_uniformbuf_free(), and self.
PyObject* BPyGPUUniformBuf_CreatePyObject | ( | GPUUniformBuf * | ubo | ) |
Definition at line 185 of file gpu_py_uniformbuffer.c.
References BPyGPUUniformBuf_Type.
Referenced by pygpu_uniformbuffer__tp_new().
PyDoc_STRVAR | ( | pygpu_uniformbuffer__tp_doc | , |
".. class:: GPUUniformBuf(data)\n" "\n" " This object gives access to off uniform buffers.\n" "\n" " :arg data: Data to fill the buffer.\n" " :type data: object exposing buffer interface\n" | |||
) |
PyDoc_STRVAR | ( | pygpu_uniformbuffer_update_doc | , |
".. method:: update(data)\n" "\n" " Update the data of the uniform buffer object.\n" | |||
) |
|
static |
Definition at line 58 of file gpu_py_uniformbuffer.c.
References BPYGPU_IS_INIT_OR_ERROR_OBJ, BPyGPUUniformBuf_CreatePyObject(), GPU_context_active_get(), GPU_uniformbuf_create_ex(), NULL, and STRNCPY.
|
static |
Definition at line 110 of file gpu_py_uniformbuffer.c.
References BPYGPU_UNIFORMBUF_CHECK_OBJ, GPU_uniformbuf_update(), NULL, and self.
|
static |
Definition at line 29 of file gpu_py_uniformbuffer.c.
References BPYGPU_USE_GPUOBJ_FREE_METHOD, NULL, BPyGPUUniformBuf::ubo, and UNLIKELY.
PyTypeObject BPyGPUUniformBuf_Type |
Definition at line 168 of file gpu_py_uniformbuffer.c.
Referenced by bpygpu_types_init(), BPyGPUUniformBuf_CreatePyObject(), and pygpu_shader_uniform_block().
|
static |
|
static |
Definition at line 149 of file gpu_py_uniformbuffer.c.