Can buffers created from one adapter be used in another adapter (same device) #3999
-
Hey all! I'm currently running two loops:
Each loop gets its own adapter (mostly because I'm new to both Rust and WGPU and sharing resources hurts my head). The buffers generated for the first adapter are throwing an Is this because I'm attempting to migrate buffers between adapters or could there be some other issue at hand? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Every buffer and other resource belongs to a specific Your sharing problem may be solvable by using an |
Beta Was this translation helpful? Give feedback.
That's not the same device in any way, then. So, yes, you will have to create just one device on one adapter and share it between your two threads/tasks.