Skip to content

Update exportToGPU to be synchronous call.#12

Merged
taste1981 merged 1 commit into
mainfrom
syncWebGPU
Jun 21, 2026
Merged

Update exportToGPU to be synchronous call.#12
taste1981 merged 1 commit into
mainfrom
syncWebGPU

Conversation

@taste1981

Copy link
Copy Markdown
Owner

No description provided.

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

This PR updates the SelfieSegmentationLandscape WebNN/WebGPU interop helpers so that getInputBuffer() / getOutputBuffer() are synchronous wrappers around context_.exportToGPU(...), aligning with the stated intent that exportToGPU is now a synchronous call.

Changes:

  • Removed async / await from getInputBuffer() and getOutputBuffer().
  • Returned the exportToGPU(...) result directly from both methods.

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

@taste1981 taste1981 merged commit 30dbadb into main Jun 21, 2026
1 check passed
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