mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 14:31:08 +01:00
ccf9466a83ec73f93d3d8ba8516bfdeb68242310
120: prototype of futures for buffer mapping r=grovesNL a=swiftcoder This is largely in request-for-comment state right now, although it does work. As written the `GpuFuture` implementation only works with types that are `Copy`, which rules out using a destructor to unmap the buffer. I'm assume it's possible to write a future type that can produce a non-Copy result, but I haven't sufficiently internalised how `Pin` works to see how. Co-authored-by: Tristam MacDonald <swiftcoder@gmail.com>
Languages
Rust
78.5%
WGSL
13%
GLSL
3.1%
Metal
2.8%
HLSL
2.3%
Other
0.2%