amethyst / amethyst/rendy

Avoid memory invalidation when writing

未关闭
#247 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
Rust
星标
812
派生
94
PR 合并指标
30 天内没有已合并 PR

描述

Rendy's [map](https://docs.rs/rendy-memory/0.5.2/rendy_memory/trait.Block.html#tymethod.map) method tries to be too smart and ends up invalidating the range, even when the user simply intends to write data to it. Invalidation is not free - https://github.com/gfx-rs/gfx/issues/3099 , but most importantly - we should have a way to avoid it here entirely.

One idea is to have the user specifying explicitly what the memory is mapped for: read, write, or both. That requires API changes, unless you want to expose this as a separate method (even something like `map_discard` would do).

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。