Blender V5.3
gpu_py_uniformbuffer.cc File Reference
#include <Python.h>
#include "BLI_string_utf8.hh"
#include "GPU_context.hh"
#include "GPU_uniform_buffer.hh"
#include "../generic/python_compat.hh"
#include "gpu_py.hh"
#include "gpu_py_uniformbuffer.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Functions

Public API
PyObject * blender::BPyGPUUniformBuf_CreatePyObject (gpu::UniformBuf *ubo)

gpu::UniformBuf Common Utilities

#define BPYGPU_UNIFORMBUF_CHECK_OBJ(bpygpu)
static int blender::pygpu_uniformbuffer_valid_check (BPyGPUUniformBuf *bpygpu_ub)

gpu::UniformBuf Type

static PyGetSetDef blender::pygpu_uniformbuffer__tp_getseters []
static PyMethodDef blender::pygpu_uniformbuffer__tp_methods []
PyTypeObject blender::BPyGPUUniformBuf_Type
static PyObject * blender::pygpu_uniformbuffer__tp_new (PyTypeObject *, PyObject *args, PyObject *kwds)
 blender::PyDoc_STRVAR (pygpu_uniformbuffer_update_doc, ".. method:: update(data)\n" "\n" " Update the data of the uniform buffer object.\n" "\n" " :param data: Data to fill the buffer.\n" " :type data: Buffer\n")
static PyObject * blender::pygpu_uniformbuffer_update (BPyGPUUniformBuf *self, PyObject *obj)
static void blender::BPyGPUUniformBuf__tp_dealloc (BPyGPUUniformBuf *self)
 blender::PyDoc_STRVAR (pygpu_uniformbuffer__tp_doc, ".. class:: GPUUniformBuf\n" "\n" " This object gives access to uniform buffers.\n" "\n" " .. method:: __init__(data)\n" "\n" " :param data: Data to fill the buffer.\n" " :type data: Buffer\n")

Detailed Description

This file defines the uniform buffer functionalities of the 'gpu' module

  • Use bpygpu_ for local API.
  • Use BPyGPU for public API.

Definition in file gpu_py_uniformbuffer.cc.

Macro Definition Documentation

◆ BPYGPU_UNIFORMBUF_CHECK_OBJ

#define BPYGPU_UNIFORMBUF_CHECK_OBJ ( bpygpu)
Value:
{ \
if (pygpu_uniformbuffer_valid_check(bpygpu) == -1) [[unlikely]] { \
return nullptr; \
} \
} \
((void)0)

Definition at line 47 of file gpu_py_uniformbuffer.cc.

Referenced by blender::pygpu_uniformbuffer_update().