NyxRenderer#

class gs_nyx.nyx_py_renderer.NyxRenderer#

Bases: object

GPU rendering bridge. Owns a Vulkan rendering server and exposes CUDA-interop frame buffers to Python.

Constructors

NyxRenderer()

Construct an uninitialized renderer; call ‘startup’ before use.

Methods

allocate_scene_buffers

Allocate the GPU buffers needed to drive the scene from Python according to the given BridgeUpdateDesc.

load_scene_from_file

Load a scene file from disk into the renderer.

pick_pixel

Pick the scene object visible under 'pixel' from the given camera.

render_frame

Render the scene from the given camera.

set_deform_entity_active_triangles

set_env_map

Select the active environment map by index in the scene's environment map array.

shutdown

Release all renderer, CUDA-interop and SDK global resources.

startup

Initialize the renderer with the given BridgeStartupParams, retain the requested CUDA device, and load shipped shader/asset resources.

trace_ray

Trace a ray against the scene.

unload_scene

Unload the currently loaded scene and free its GPU resources.

update

Advance per-frame renderer bookkeeping.

update_scene

Apply pending CPU-side scene edits to the GPU rendering state.

update_scene_buffers

Update the GPU scene buffers from CUDA pointers carried by a BridgeUpdateData.