Blender
V5.3
source
blender
python
gpu
gpu_py_storagebuffer.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2026 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
StorageBuf
;
19
}
// namespace gpu
20
21
extern
PyTypeObject
BPyGPUStorageBuf_Type
;
22
23
#define BPyGPUStorageBuf_Check(v) (Py_TYPE(v) == &BPyGPUStorageBuf_Type)
24
25
struct
BPyGPUStorageBuf
{
26
PyObject_HEAD
27
gpu::StorageBuf
*
ssbo
;
28
};
29
30
[[nodiscard]] PyObject *
BPyGPUStorageBuf_CreatePyObject
(
gpu::StorageBuf
*ssbo)
ATTR_NONNULL
(1);
31
32
}
// namespace blender
BLI_compiler_attrs.hh
blender::gpu::StorageBuf
Definition
gpu_storage_buffer_private.hh:28
blender::gpu
Definition
blf_internal_types.hh:35
blender
BMesh Iterators.
Definition
ANIM_action.hh:30
blender::BPyGPUStorageBuf_Type
PyTypeObject BPyGPUStorageBuf_Type
Definition
gpu_py_storagebuffer.cc:273
blender::ATTR_NONNULL
void ATTR_NONNULL(1, 2)
blender::BPyGPUStorageBuf_CreatePyObject
PyObject * BPyGPUStorageBuf_CreatePyObject(gpu::StorageBuf *ssbo)
Definition
gpu_py_storagebuffer.cc:331
blender::BPyGPUStorageBuf
Definition
gpu_py_storagebuffer.hh:25
blender::BPyGPUStorageBuf::ssbo
PyObject_HEAD gpu::StorageBuf * ssbo
Definition
gpu_py_storagebuffer.hh:27
Generated on
for Blender by
doxygen
1.18.0