linebender / linebender/vello

repeatedly rendering the same `ImageData` does not occur any error but the image does not appear except the first rendering

Open
#1,809 0 comments 2 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

I found this bug after upgrading the version of vello from 0.7.0 to 0.9.0.

Here's the code for recreating this bug (most things are omitted to simplify the code):

use vello::kurbo::Affine;
use vello::peniko::{ Color, ImageData };

let image_data = ImageData {
    // ...
};

let scene = vello::Scene::new();
scene.draw_image(&image_data, /* ... */);

// the first rendering draws the image correctly,
// but repeating this does not
renderer.render_to_texture(
    &device, &queue,
    &scene, &texture_view,
    &RenderParams {
        base_color: Color::TRANSPARENT,
        width, height,
        antialiasing_method: vello::AaConfig::Area
    }
);

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 reproducing the issue with the provided ImageData, Scene::draw_image, and repeated renderer.render_to_texture calls using vello 0.9.0, then compare the first and subsequent outputs. Trace the image-rendering path involved by these entry points and verify that repeated rendering of the same scene displays the image consistently without errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
computer-graphics
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.