Blender
V5.0
source
blender
python
gpu
gpu_py_uniformbuffer.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2023 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9
#pragma once
10
11
#include <Python.h>
12
13
#include "
BLI_compiler_attrs.h
"
14
15
namespace
blender::gpu
{
16
class
UniformBuf
;
17
}
// namespace blender::gpu
18
19
extern
PyTypeObject
BPyGPUUniformBuf_Type
;
20
21
#define BPyGPUUniformBuf_Check(v) (Py_TYPE(v) == &BPyGPUUniformBuf_Type)
22
23
struct
BPyGPUUniformBuf
{
24
PyObject_HEAD
25
blender::gpu::UniformBuf
*
ubo
;
26
};
27
28
[[nodiscard]] PyObject *
BPyGPUUniformBuf_CreatePyObject
(
blender::gpu::UniformBuf
*ubo)
29
ATTR_NONNULL
(1);
BLI_compiler_attrs.h
ATTR_NONNULL
#define ATTR_NONNULL(...)
Definition
BLI_compiler_attrs.h:25
blender::gpu::UniformBuf
Definition
gpu_uniform_buffer_private.hh:25
BPyGPUUniformBuf_Type
PyTypeObject BPyGPUUniformBuf_Type
Definition
gpu_py_uniformbuffer.cc:176
BPyGPUUniformBuf_CreatePyObject
PyObject * BPyGPUUniformBuf_CreatePyObject(blender::gpu::UniformBuf *ubo) ATTR_NONNULL(1)
Definition
gpu_py_uniformbuffer.cc:234
blender::gpu
Definition
blf_internal_types.hh:32
BPyGPUUniformBuf
Definition
gpu_py_uniformbuffer.hh:23
BPyGPUUniformBuf::ubo
PyObject_HEAD blender::gpu::UniformBuf * ubo
Definition
gpu_py_uniformbuffer.hh:25
Generated on
for Blender by
doxygen
1.16.1