mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-22 23:04:07 +00:00
Merge #903
903: fix for mixed STORAGE_STORE and STORAGE_LOAD r=kvark a=kocsis1david **Connections** None **Description** A buffer that contains dynamic data is used for both uniforms and storage read. This was a problem for wgpu and it gave a `PendingTransition` error. **Testing** It's a trivial fix, but I don't know if there's an example for it in wgpu-rs that can be used for testing. It seems that the PR "Sync changes from mozilla-central" is already solving the same issue. Co-authored-by: Dávid Kocsis <kocsis1david@windowslive.com>
This commit is contained in:
commit
bba82724a8
@ -2009,9 +2009,9 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
|
||||
} => (
|
||||
wgt::BufferUsage::STORAGE,
|
||||
if readonly {
|
||||
resource::BufferUse::STORAGE_STORE
|
||||
} else {
|
||||
resource::BufferUse::STORAGE_LOAD
|
||||
} else {
|
||||
resource::BufferUse::STORAGE_STORE
|
||||
},
|
||||
min_binding_size,
|
||||
dynamic,
|
||||
|
Loading…
Reference in New Issue
Block a user