Skip to content

Waiting for asynchronous operations to finish (polling) #91

@athas

Description

@athas

wgpu's compute example uses wgpuDevicePoll to block until the memory is mapped. This works, but wgpuDevicePoll is wgpu-specific. The JS API returns a promise that can be used for blocking here, but I cannot see how something similar can be done using just webgpu.h. Some mechanism for blocking until asynchronous operations are done should probably be added.

Metadata

Metadata

Assignees

No one assigned

    Labels

    asyncAsynchronous operations and callbacks

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions