Blender V5.3
gpu_py_vertex_format.cc File Reference
#include <Python.h>
#include "../generic/py_capi_utils.hh"
#include "../generic/python_compat.hh"
#include "gpu_py.hh"
#include "gpu_py_vertex_format.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Functions

Public API
PyObject * blender::BPyGPUVertFormat_CreatePyObject (GPUVertFormat *fmt)

Variables

Enum Conversion

Use with PyArg_ParseTuple's "O&" formatting.

static PyC_StringEnumItems blender::pygpu_vertcomptype_items []
static PyC_StringEnumItems blender::pygpu_vertfetchmode_items []

VertFormat Type

static PyMethodDef blender::pygpu_vertformat__tp_methods []
PyTypeObject blender::BPyGPUVertFormat_Type
static PyObject * blender::pygpu_vertformat__tp_new (PyTypeObject *, PyObject *args, PyObject *kwds)
static uint blender::attr_size (GPUVertCompType type, int len)
 blender::PyDoc_STRVAR (pygpu_vertformat_attr_add_doc, ".. method:: attr_add(id, comp_type, len, fetch_mode)\n" "\n" " Add a new attribute to the format.\n" "\n" " :param id: Name of the attribute. Often ``position``, ``normal``, ...\n" " :type id: str\n" " :param comp_type: The data type that will be used to store the value in memory.\n" " :type comp_type: Literal['I8', 'U8', 'I16', 'U16', 'I32', 'U32', 'F32', 'I10']\n" " :param len: How many individual values the attribute consists of\n" " (e.g. 2 for uv coordinates).\n" " :type len: int\n" " :param fetch_mode: How values from memory will be converted when used in the shader.\n" " This is mainly useful for memory optimizations when you want to store values with\n" " reduced precision. E.g. you can store a float in only 1 byte but it will be\n" " converted to a normal 4 byte float when used.\n" " :type fetch_mode: Literal['FLOAT', 'INT', 'INT_TO_FLOAT_UNIT']\n")
static PyObject * blender::pygpu_vertformat_attr_add (BPyGPUVertFormat *self, PyObject *args, PyObject *kwds)
static void blender::pygpu_vertformat__tp_dealloc (BPyGPUVertFormat *self)
 blender::PyDoc_STRVAR (pygpu_vertformat__tp_doc, ".. class:: GPUVertFormat()\n" "\n" " This object contains information about the structure of a vertex buffer.\n")

Detailed Description

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

Definition in file gpu_py_vertex_format.cc.