Blender V5.0
gpu_py.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
14
17
18[[nodiscard]] bool bpygpu_is_init_or_error();
19
20#define BPYGPU_IS_INIT_OR_ERROR_OBJ \
21 if (UNLIKELY(!bpygpu_is_init_or_error())) { \
22 return NULL; \
23 } \
24 ((void)0)
25#define BPYGPU_IS_INIT_OR_ERROR_INT \
26 if (UNLIKELY(!bpygpu_is_init_or_error())) { \
27 return -1; \
28 } \
29 ((void)0)
PyC_StringEnumItems bpygpu_primtype_items[]
Definition gpu_py.cc:26
PyC_StringEnumItems bpygpu_dataformat_items[]
Definition gpu_py.cc:40
bool bpygpu_is_init_or_error()
Definition gpu_py.cc:56