Skip to content

chore: webgpu deck enabler #9528

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

chore: webgpu deck enabler #9528

wants to merge 1 commit into from

Conversation

ibgreen
Copy link
Collaborator

@ibgreen ibgreen commented Mar 15, 2025

Closes #

Background

  • We need to pass canvasContext props, the typing is unfortunately messy

Change List

  • Hack the types until we can improve
  • Also add adapters prop so we can pass in WebGPU adaptaer.

@coveralls
Copy link

Coverage Status

coverage: 91.629%. remained the same
when pulling b96fa4c on ib/wgpu-device-enablers
into 65cacaa on master.

@ibgreen ibgreen marked this pull request as ready for review March 15, 2025 16:00
@@ -117,6 +117,9 @@ export type DeckProps<ViewsT extends ViewOrViews = null> = {
/** Use an existing luma.gl GPU device. @note If not supplied, a new device will be created using props.deviceProps */
device?: Device | null;

/** Supply adapters to use when a new device is created */
adapters?: Adapter[];
Copy link
Collaborator

Choose a reason for hiding this comment

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

I thought adapters would be added via luma.registerAdapters?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I thought adapters would be added via luma.registerAdapters?

registerAdapters is still supported, but generally I find that global registration creates as many problems as it solves, so added the capability to specify adapters explicitly.

@ibgreen-openai
Copy link
Collaborator

Closed via #9432, which leverages the DeckProps.devicesProps.adapters instead of adding another adapters prop.

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.

5 participants