Skip to content

use the new wgpu target api#45

Open
hermet wants to merge 1 commit into
mainfrom
hermet/wgpu
Open

use the new wgpu target api#45
hermet wants to merge 1 commit into
mainfrom
hermet/wgpu

Conversation

@hermet

@hermet hermet commented Jun 25, 2026

Copy link
Copy Markdown
Member

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the ThorVG example app to use the upstream “new wgpu target API” (per thorvg/thorvg#4501), aligning the WebGPU canvas setup with the latest ThorVG WgCanvas target() signature.

Changes:

  • Migrate tvg::WgCanvas::target() calls to the new WebGPU argument format ({instance, adapter, device}).
  • Update the WGPU target color space argument from tvg::ColorSpace::ABGR8888S to tvg::ColorSpace::ABGR8888 in the affected WebGPU paths.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/MultiCanvas.cpp Updates the WebGPU WgCanvas::target() call to the new target API argument structure.
src/Example.h Updates the WebGPU window resize path to use the new WgCanvas::target() API.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@hermet hermet added enhancement Improve examples refactoring Code refactoring / Exceptional handles and removed enhancement Improve examples labels Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactoring Code refactoring / Exceptional handles

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants