Blender V4.3
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
9#pragma once
10
12
15
17
18#define BPYGPU_IS_INIT_OR_ERROR_OBJ \
19 if (UNLIKELY(!bpygpu_is_init_or_error())) { \
20 return NULL; \
21 } \
22 ((void)0)
23#define BPYGPU_IS_INIT_OR_ERROR_INT \
24 if (UNLIKELY(!bpygpu_is_init_or_error())) { \
25 return -1; \
26 } \
27 ((void)0)
struct PyC_StringEnumItems bpygpu_dataformat_items[]
Definition gpu_py.cc:40
struct PyC_StringEnumItems bpygpu_primtype_items[]
Definition gpu_py.cc:26
bool bpygpu_is_init_or_error(void)
Definition gpu_py.cc:56