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

Add Buffer::size() and Buffer::usage(). #2923

Merged
merged 3 commits into from
Aug 2, 2022

Commits on Jul 30, 2022

  1. Add Buffer::size() and Buffer::usage().

    https://gpuweb.github.io/gpuweb/#buffer-interface
    
    Implementation note: it would save 8 bytes of memory to ask the backend
    for the size, instead of storing it separately, since many backends have
    the size stored anyway. But, that seemed like it would overcomplicate
    the architecture for tiny memory savings, and `usage` is already stored
    in the `wgpu::Buffer` anyway (though only used once, prior to now).
    kpreid committed Jul 30, 2022
    Configuration menu
    Copy the full SHA
    6f66d5f View commit details
    Browse the repository at this point in the history
  2. Changelog PR link

    kpreid committed Jul 30, 2022
    Configuration menu
    Copy the full SHA
    b739616 View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2022

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