Skip to content

Conversation

@beaufortfrancois
Copy link
Contributor

@beaufortfrancois beaufortfrancois commented Nov 23, 2018

For sake of simplicity and readability, I'd suggest making requestAdapter powerPreference optional.
It means web developers who simply want to have access to the default adapter would go with

const adapter = await gpu.requestAdapter();

instead of

const adapter = await gpu.requestAdapter({ powerPreference: 'default' });

@Kangz
Copy link
Contributor

Kangz commented Dec 3, 2018

Approved in the 2018-12-03 meeting.

@Kangz Kangz merged commit 2c52084 into gpuweb:master Dec 3, 2018
@Kangz
Copy link
Contributor

Kangz commented Dec 3, 2018

Thanks for the contribution @beaufortfrancois !

@beaufortfrancois beaufortfrancois deleted the optional branch June 27, 2019 09:44
ben-clayton pushed a commit to ben-clayton/gpuweb that referenced this pull request Sep 6, 2022
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.

4 participants