Blender
V5.3
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.hh
"
14
15
namespace
blender
{
16
17
namespace
gpu
{
18
class
UniformBuf
;
19
}
// namespace gpu
20
21
extern
PyTypeObject
BPyGPUUniformBuf_Type
;
22
23
#define BPyGPUUniformBuf_Check(v) (Py_TYPE(v) == &BPyGPUUniformBuf_Type)
24
25
struct
BPyGPUUniformBuf
{
26
PyObject_HEAD
27
gpu::UniformBuf
*
ubo
;
28
};
29
30
[[nodiscard]] PyObject *
BPyGPUUniformBuf_CreatePyObject
(
gpu::UniformBuf
*ubo)
ATTR_NONNULL
(1);
31
32
}
// namespace blender
BLI_compiler_attrs.hh
blender::gpu::UniformBuf
Definition
gpu_uniform_buffer_private.hh:25
blender::gpu
Definition
blf_internal_types.hh:35
blender
BMesh Iterators.
Definition
ANIM_action.hh:30
blender::BPyGPUUniformBuf_CreatePyObject
PyObject * BPyGPUUniformBuf_CreatePyObject(gpu::UniformBuf *ubo)
Definition
gpu_py_uniformbuffer.cc:243
blender::BPyGPUUniformBuf_Type
PyTypeObject BPyGPUUniformBuf_Type
Definition
gpu_py_uniformbuffer.cc:185
blender::ATTR_NONNULL
void ATTR_NONNULL(1, 2)
blender::BPyGPUUniformBuf
Definition
gpu_py_uniformbuffer.hh:25
blender::BPyGPUUniformBuf::ubo
PyObject_HEAD gpu::UniformBuf * ubo
Definition
gpu_py_uniformbuffer.hh:27
Generated on
for Blender by
doxygen
1.18.0