`BPYGPU_IS_INIT_OR_ERROR_OBJ` is not implemented in all pygpu functions. Instead of copying and pasting that call across the API when it has no gpu context, override the methods with one that always reports error.
14 lines
325 B
C
14 lines
325 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/** \file
|
|
* \ingroup bpygpu
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
extern struct PyC_StringEnumItems bpygpu_primtype_items[];
|
|
extern struct PyC_StringEnumItems bpygpu_dataformat_items[];
|
|
|
|
PyObject *bpygpu_create_module(PyModuleDef *module_type);
|
|
int bpygpu_finalize_type(PyTypeObject *py_type);
|