Skip to content

feat: add correctness tests - #123

Open
dcvz wants to merge 4 commits into
mainfrom
feat/tests
Open

dcvz wants to merge 4 commits into
mainfrom
feat/tests

Conversation

@dcvz

@dcvz dcvz commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

Adds a first set of correctness tests and runs them in CI. Each test renders or copies into a small offscreen texture, reads it back and checks the bytes, so they don't need a window. The tests added are:

  • clear
  • texture readback (region and mip)
  • depth test
  • stencil reference
  • alpha blending
  • back-face culling
  • linear sampling

As CI for Linux and Windows don't have GPUs they use lavapipe and WARP respectively. To get WARP, createDevice now accepts a software adapter when it's asked for by name, it still never picks one on its own.

The PR is based on #114 (+ the additional changes from my review there), so it's a draft until that's in and I'll rebase then.

@dcvz
dcvz requested a review from DarioSamo October 12, 2026 17:39
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.

2 participants