Comments (3)
Are the StagingBuffer
s not getting destroyed? Or both the Buffer
s and the StagingBuffer
s?
from wgpu.
The issue might also be that we don't unmap the staging buffer once we are done with it
wgpu/wgpu-core/src/resource.rs
Lines 673 to 679 in 9796766
We could call .flush()
on it like in all the other places
wgpu/wgpu-core/src/device/queue.rs
Lines 342 to 353 in 9796766
from wgpu.
Are the
StagingBuffer
s not getting destroyed? Or both theBuffer
s and theStagingBuffer
s?
It all seems to have leaked.
The issue might also be that we don't unmap the staging buffer once we are done with it
If we drop the resource before free suballocation, the leak is gone, which maybe cause by internal mechanism of gpu-allocator
.
from wgpu.
Related Issues (20)
- Setting a pipeline-overridable shader constant to `f64::INFINITY` results in a crash on certain platforms HOT 4
- In OpenGL backend, attempting to render to a multisampled texture with the usages `RENDER_ATTACHMENT | TEXTURE_BINDING` fails HOT 5
- Using `@builtin(sample_mask)` in a fragment shader with OpenGL panics due to a naga translation error HOT 1
- Restrict usage of `f64` with some built-in functions HOT 2
- Maximum dynamic offset limit is incorrect per the spec HOT 6
- get_bind_group_layout fails when layout is auto HOT 1
- Memory write concurrency guarantees HOT 1
- regression: compute example doesn't work on wayland HOT 12
- Mip level support with Metal not working? HOT 1
- Enable `clippy::tests_outside_test_module` lint HOT 2
- Took more than 10minutes to create compute pipeline on Linux HOT 6
- BufferAsyncError in webassembly (Linux only) HOT 2
- Support `first` and `either` interpolation sampling
- 0u64 has been mutated to a wierd value after transferring to webgpu then copy back (Webassembly only) HOT 1
- NotSupported(NotSupportedError) when attempting to run example HOT 1
- Sometimes cannot create compute pipeline HOT 1
- Unable to pass a pointer to a struct field as a function argument HOT 1
- Expose the translation units and parsers for naga frontends HOT 1
- BindGroupLayout[Id(0,1,mtl)] does not exist (recreating the same wgpu::Device)
- `wgpu_hal` tries to call `glFlushMappedBufferRange` on buffer without setting `GL_MAP_FLUSH_EXPLICIT_BIT` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wgpu.