Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce a "transferable" algorithm for BufferSource #1419

Merged
merged 2 commits into from
Jul 19, 2024

Commits on Jul 16, 2024

  1. Introduce a "detachable" algorithm for BufferSource

    The new "detachable" algorithm allows an invoker to determine if a BufferSource is detachable
    without errors before invoking transfer. This is particularly helpful if several buffers are
    processed in a batch, as the validity of the operation can be determined up front, rather than
    during processing which could leave the buffers in a mix of states.
    
    See discussion in [1]. A local copy of the algorithm was landed as [2] but this seems like a useful
    addition to WebIDL.
    
    1: webmachinelearning/webnn#351
    2: https://webmachinelearning.github.io/webnn/#buffersource-detachable
    inexorabletash committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    4f921d3 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2024

  1. Configuration menu
    Copy the full SHA
    08fc50a View commit details
    Browse the repository at this point in the history