这是indexloc提供的服务,不要输入任何密码
Skip to content

mapAsync() algorithm's deviceLost variable is uninitialized on validation error #5101

@kainino0x

Description

@kainino0x

https://gpuweb.github.io/gpuweb/#dom-gpubuffer-mapasync

The deviceLost variable in the last steps (map failure steps) is only set from one of the two callers to these steps. This makes it entirely ambiguous whether a validation error should produce AbortError or OperationError if the device is already lost when mapAsync starts. (This is one of the validation checks, but there are others).

Metadata

Metadata

Assignees

Labels

apiWebGPU APIapi resolvedResolved - waiting for a change to the API specificationbug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions