gfx-rs / gfx

[maintenance mode] A low-overhead Vulkan-like GPU API for Rust.
http://gfx-rs.github.io/
Apache License 2.0
5.35k stars 551 forks source link

Support dynamic array sizes on Metal #3757

Closed kvark closed 3 years ago

kvark commented 3 years ago

https://github.com/gfx-rs/wgpu/pull/1381 is blocked because gfx-backend-metal isn't providing a buffer for storage binding sizes. There is a draft PR #3751 that addresses this

kvark commented 3 years ago

I looked into it, and it appears more difficult than I expected. In particular, this binding is not a part of the pipeline layout, because each pipeline, for each stage, remaps the Naga's globals to the set of indices. So it depends both on the descriptor contents and on the pipeline.