mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 12:51:06 +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 fstr = dom::GetEnumString(requested);
|
||||||
const auto astr = this->LabelOrId();
|
const auto astr = this->LabelOrId();
|
||||||
nsPrintfCString msg(
|
nsPrintfCString msg(
|
||||||
"requestDevice: Feature '%s' requested must be supported by "
|
"`GPUAdapter.requestDevice`: '%s' was requested in "
|
||||||
"adapter %s",
|
"`requiredFeatures`, but it is not supported by adapter %s.",
|
||||||
fstr.get(), astr.get());
|
fstr.get(), astr.get());
|
||||||
promise->MaybeRejectWithTypeError(msg);
|
promise->MaybeRejectWithTypeError(msg);
|
||||||
return;
|
return;
|
||||||
@ -359,7 +359,8 @@ already_AddRefed<dom::Promise> Adapter::RequestDevice(
|
|||||||
const auto featureStr = dom::GetEnumString(requested);
|
const auto featureStr = dom::GetEnumString(requested);
|
||||||
(void)featureStr;
|
(void)featureStr;
|
||||||
nsPrintfCString msg(
|
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());
|
featureStr.get());
|
||||||
promise->MaybeRejectWithTypeError(msg);
|
promise->MaybeRejectWithTypeError(msg);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user