Skip to content

feat(anari_vsr): let the capture filename be overridden - #32

Merged
jeffamstutz merged 1 commit into
mainfrom
anari_vsr_capture_filename
Nov 18, 2026
Merged

jeffamstutz merged 1 commit into
mainfrom
anari_vsr_capture_filename

Conversation

@jeffamstutz

Copy link
Copy Markdown
Collaborator

Summary

The VSR device always wrote its Scene Archive to live_capture.vsr in the working directory. The filename can now be overridden, with the same precedence as captureInterval:

  1. captureFilename device parameter (ANARI_STRING)
  2. ANARI_VSR_CAPTURE_FILENAME environment variable
  3. live_capture.vsr
anari::setParameter(d, d, "captureFilename", "/tmp/my_app.vsr");
anari::commitParameters(d, d);
  • An empty value counts as unset.
  • Relative paths resolve against the working directory; the directory must already exist (a failed save is reported as before).
  • Changing the filename mid-run makes the next capture write the new file even if nothing was committed since the last write.

README and AGENTS.md env var table updated.

Testing

No automated suite covers anari_vsr, so this was checked with a small throwaway ANARI program against a Release build: default name, env var only, parameter overriding env var, and a mid-run filename switch with ANARI_VSR_CAPTURE_INTERVAL=1 (both files written).

The VSR device always wrote its Scene Archive to live_capture.vsr in the
working directory. The filename now comes from the `captureFilename`
device parameter (ANARI_STRING), falling back to the
ANARI_VSR_CAPTURE_FILENAME environment variable, then live_capture.vsr.
An empty value counts as unset.

Changing the filename resets the last-captured finalization so the next
capture writes the new file even without new commits.
@jeffamstutz
jeffamstutz merged commit 5a5e4ef into main Nov 18, 2026
13 checks passed
@jeffamstutz
jeffamstutz deleted the anari_vsr_capture_filename branch November 18, 2026 21:55
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.

1 participant