Skip to content

Object python bindings and per device module generation#325

Merged
jeffamstutz merged 2 commits intoKhronosGroup:next_releasefrom
progschj:device_binding_generator
Nov 4, 2025
Merged

Object python bindings and per device module generation#325
jeffamstutz merged 2 commits intoKhronosGroup:next_releasefrom
progschj:device_binding_generator

Conversation

@progschj
Copy link
Collaborator

@progschj progschj commented Nov 4, 2025

Adds an object style python wrapper: anariFooBar(device, object, ...) -> object.fooBar(...)

The anari module contains the frontend that can load libraries like the C version

Device modules load their library on import and provide a newDevice wrapper:

import anari
import helide
device = helide.newDevice()
# ...

See anari_tutorial_device.py for a full example.

@progschj progschj force-pushed the device_binding_generator branch from 52139ba to 6fa0080 Compare November 4, 2025 14:31
@jeffamstutz
Copy link
Contributor

LGTM

@jeffamstutz jeffamstutz merged commit 8a891de into KhronosGroup:next_release Nov 4, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants