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

Make GPUDevice.destroy() a queued operation #2599

@kainino0x

Description

@kainino0x

It came up in today's editors' call that GPUDevice.destroy() should probably be a queued operation, i.e. occurring after previous operations on the device timeline. This would allow patterns like:

  • Render to a canvas and destroy before waiting for it to be presented
  • Do some work, issue a mapAsync for readback, and destroy before waiting for the map to complete

I am pretty sure this can be a post-V1 change, but we should briefly discuss before deciding that.

Metadata

Metadata

Assignees

Labels

copyeditingPure editorial stuff (copyediting, *.bs file syntax, etc.)

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions