linebender / linebender/vello

Add an API to reserve a scene

Open
#667 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
4.3k
Forks
300
Avg merge
2d 13h
Merged PRs (30d)
61

Description

Vello should provide a `SceneMetrics` type, which could be returned from a Scene; multiple SceneMetrics could be added together.

Scene should have a new `Scene::reserve(metrics)` constructor taking a SceneMetrics value.

This could be useful for consumers who want to stitch a large amount of pre-existing scenes together in one pass. The consumer would scan over the scene metrics, reserve one giant scene, and then run a second pass to add the sub-scenes to it.

```rust
impl Scene {
fn metrics(&self) -> SceneMetrics;

fn reserve(metrics: &SceneMetrics) -> Self;
}

impl SceneMetrics {
fn add(&self, other: &SceneMetrics) -> SceneMetrics;
}
```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the existing Scene API and construction paths to understand how scene storage is allocated and populated. Define how SceneMetrics is computed and combined, then verify that Scene::reserve(metrics) can support adding pre-existing scenes in a second pass; add coverage for metrics aggregation and reserved-scene construction.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
computer-graphics
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.