linebender / linebender/vello

Add tests that render to a non-RGBA8 surface

Open
#1,452 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

While working on filters, it has often happened to me that the tests worked fine, but when I opened the interactive demo it didn't work anymore due to mismatches in the texture format. This is because (I think) the tests always render to an RGBA8 surface, but when opening the interactive winit demo for example, it will render to a BGRA8 surface on MacOS. It would be nice to have some tests for this so that this case is covered as well.

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 locating the existing filter tests that render to RGBA8 and the interactive winit demo path described in the issue. Add coverage for a non-RGBA8 surface, such as the demo's BGRA8 case, then run the relevant test suite and confirm that texture-format mismatches are covered.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.