Skip to content

[CI only] #129 Direct2D backend — Windows verification - #309

Merged
michaelstonis merged 2 commits into
spec/33-broadside-v1from
129-direct2d-backend
Oct 14, 2026
Merged

michaelstonis merged 2 commits into
spec/33-broadside-v1from
129-direct2d-backend

Conversation

@michaelstonis

Copy link
Copy Markdown
Owner

Temporary draft PR to run the Windows CI leg for #129 (Direct2D backend), which cannot run on macOS. It will be closed without merging; the branch merges into spec/33-broadside-v1 through the normal merger flow once Windows CI is green.

🤖 Generated with Claude Code

michaelstonis and others added 2 commits October 13, 2026 22:23
)

Direct2DRenderer replays display lists onto a Direct2D device context over a
Direct3D 11 device (hardware with WARP fallback, or WARP) and reads the
pixels back into a premultiplied BGRA Bitmap, with the software
rasterizer's page mapping and render overloads.

- Fills: user-space path geometries with native Beziers, winding or
  alternate fill mode, every figure closed, degenerate subpaths painting
  the device pixel under them (8.5.3.3).
- Strokes: the rasterizer's pen choice, thinnest line, stroke adjustment,
  flattening and user-length dashing (closed dashes joined), widened by
  Direct2D with caps, joins and miter-or-bevel; zero-length dashes and
  round-cap degenerate subpaths filled by the backend (8.5.3.2, 8.4.3,
  10.7.5).
- Clips: axis-aligned anti-aliased clips for pixel-aligned rectangles,
  geometric-mask layers otherwise, popped on RestoreState (8.5.4).
- Images, image masks, shadings and glyphs are skipped with one
  RenderingOperationSkipped diagnostic per kind (#130, #131).
- Bindings: CsWin32 with allowMarshaling false (function-pointer COM
  structs, AOT-safe, no managed allocation per call).

Tests (tests/Broadside.Rendering.Direct2D.Tests: golden images of the three
path corpus files and page-rotation on WARP, replay allocation, renderer
behaviour) and Direct2DBackendBenchmarks (own Windows project) run on the
Windows leg of CI; they build everywhere. Verified locally by build only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@michaelstonis
michaelstonis merged commit a1aef60 into spec/33-broadside-v1 Oct 14, 2026
14 of 18 checks passed
michaelstonis added a commit that referenced this pull request Oct 14, 2026
…chmarks too

The Direct2D benchmark project links BenchmarkConfig; out of process its dry run hit BenchmarkDotNet's two-minute boilerplate build timeout on the Windows leg (draft PR #309). Same change as #312, so the two merge cleanly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@michaelstonis
michaelstonis deleted the 129-direct2d-backend branch October 14, 2026 13:45
@michaelstonis

Copy link
Copy Markdown
Owner Author

Integrated into spec/33-broadside-v1 via the lane merge; Windows tests were green here.

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