#include <pybind11/pybind11.h>
#include <pybind11/operators.h>
#include <pybind11/stl.h>
#include <pybind11/stl_bind.h>
#include <pybind11/functional.h>
#include "core/options.h"
#include "core/info.h"
#include "../src/backend.h"
#include "pybackend_extras.h"
#include "../../third-party/stb_image_write.h"
#include <sstream>
#include <vector>
Go to the source code of this file.
|
#define | BIND_RAW_RO_ARRAY(class, name, type, size) #name, [](const class &c) -> const std::array<type, size>& { return reinterpret_cast<const std::array<type, size>&>(c.name); } |
|
#define | BIND_RAW_RW_ARRAY(class, name, type, size) BIND_RAW_RO_ARRAY(class, name, type, size), [](class &c, const std::array<type, size> &arr) { for (int i=0; i<size; ++i) c.name[i] = arr[i]; } |
|
#define | NAME pybackend2 |
|
#define | SNAME "pybackend2" |
|
#define SNAME "pybackend2" |
PYBIND11_MODULE |
( |
NAME |
, |
|
|
m |
|
|
) |
| |