27 {
"supported",
"Boolean, True when Blender is built with OpenVDB support"},
28 {
"version",
"The OpenVDB version as a tuple of 3 numbers"},
29 {
"version_string",
"The OpenVDB version formatted as a string"},
35 "This module contains information about OpenVDB blender is linked against",
42 PyObject *openvdb_info;
50 if (openvdb_info ==
nullptr) {
55# define SetStrItem(str) PyStructSequence_SET_ITEM(openvdb_info, pos++, PyUnicode_FromString(str))
58#define SetObjItem(obj) PyStructSequence_SET_ITEM(openvdb_info, pos++, obj)
64 PyC_Tuple_Pack_I32({curversion >> 24, (curversion >> 16) % 256, (curversion >> 8) % 256}));
66 "%2d, %2d, %2d", curversion >> 24, (curversion >> 16) % 256, (curversion >> 8) % 256));
73 if (PyErr_Occurred()) [[unlikely]] {
74 Py_DECREF(openvdb_info);
static PyStructSequence_Field app_openvdb_info_fields[]
PyObject * PyC_Tuple_Pack_I32(const Span< int > values)
PyObject * BPY_app_openvdb_struct()
static PyTypeObject BlenderAppOVDBType
constexpr size_t ARRAY_SIZE(const T(&arg)[N]) noexcept
static PyStructSequence_Desc app_openvdb_info_desc
static PyObject * make_openvdb_info()
int OpenVDB_getVersionHex()
header-only compatibility defines.