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

[shaders] Option to force read_write access mode on all storage bindings #364

Merged
merged 1 commit into from
Sep 22, 2023

Commits on Sep 22, 2023

  1. [shaders] Option to force read_write access mode on all storage bindings

    Introduced the `force_rw_storage` feature which applies a transformation
    that converts all read-only storage bindings to have the `read_write`
    access mode.
    
    This is being provided as an optional preprocessor transformation to
    work around the WebGPU standard's limitation on mixed `storage-read` and
    `storage` usages by a GPU program over the same buffer object (see
    https://www.w3.org/TR/webgpu/#programming-model-resource-usages).
    
    This limitation makes the WGSL shaders incompatible with (Skia)
    Graphite's sub-allocating buffer manager when they are run on its Dawn
    backend. This workaround will be removed once Graphite's buffer
    management system supports whole buffer bindings.
    armansito committed Sep 22, 2023
    Configuration menu
    Copy the full SHA
    d47dbfd View commit details
    Browse the repository at this point in the history