mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 04:41:11 +00:00
Bug 1932738 - diag(webgpu): clarify meaning of unsupported feature errors r=webgpu-reviewers,teoxoy
Differential Revision: https://phabricator.services.mozilla.com/D229827
This commit is contained in:
parent
e436184a88
commit
63fa5e7544
@ -347,8 +347,8 @@ already_AddRefed<dom::Promise> Adapter::RequestDevice(
|
||||
const auto fstr = dom::GetEnumString(requested);
|
||||
const auto astr = this->LabelOrId();
|
||||
nsPrintfCString msg(
|
||||
"requestDevice: Feature '%s' requested must be supported by "
|
||||
"adapter %s",
|
||||
"`GPUAdapter.requestDevice`: '%s' was requested in "
|
||||
"`requiredFeatures`, but it is not supported by adapter %s.",
|
||||
fstr.get(), astr.get());
|
||||
promise->MaybeRejectWithTypeError(msg);
|
||||
return;
|
||||
@ -359,7 +359,8 @@ already_AddRefed<dom::Promise> Adapter::RequestDevice(
|
||||
const auto featureStr = dom::GetEnumString(requested);
|
||||
(void)featureStr;
|
||||
nsPrintfCString msg(
|
||||
"Requested feature bit for '%s' is not implemented.",
|
||||
"`GPUAdapter.requestDevice`: '%s' was requested in "
|
||||
"`requiredFeatures`, but it is not supported by Firefox.",
|
||||
featureStr.get());
|
||||
promise->MaybeRejectWithTypeError(msg);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user