()
| 12 | BACKEND = None |
| 13 | |
| 14 | def get_backend(): |
| 15 | global BACKEND |
| 16 | |
| 17 | if BACKEND is None: |
| 18 | try: |
| 19 | import _raymarching as _backend |
| 20 | except ImportError: |
| 21 | from .backend import _backend |
| 22 | |
| 23 | BACKEND = _backend |
| 24 | |
| 25 | return BACKEND |
| 26 | |
| 27 | # ---------------------------------------- |
| 28 | # utils |
no outgoing calls
no test coverage detected