render_all#

NyxPyRenderer.render_all()[source]#

Render every (env, camera) pair and return the per-camera image batches.

Runs the whole batch inside Nyx: for each env the interop dispatches patch the scene from that env’s block of the uploaded buffers, every camera renders, and the readbacks land in the packed color buffer that camera_image() aliases. Nyx waits for the GPU before returning, so the images are ready to consume.

Returns:

list of torch.Tensor – One (n_envs, H, W, 3) uint8 GPU view per camera, in camera index order. The views alias the renderer output and are overwritten by the next call; copy them to keep a frame.