Closed
Description
Description
Gles backend crashes when creating a bind group for a freshly created buffer that has MAP_WRITE usage.
Only got a vague wasm callstack, but pretty sure it's this unwrap
here https://github.com/gfx-rs/wgpu/blob/v0.13/wgpu-hal/src/gles/device.rs#L903 failing because when going this early out path we don't have a raw buffer just yet https://github.com/gfx-rs/wgpu/blob/v0.13/wgpu-hal/src/gles/device.rs#L364
Repro steps
- create buffer with
wgpu::BufferUsages::MAP_WRITE
andwgpu::BufferUsages::UNIFORM
- create simple bindgroup like this
let bind_group = device.create_bind_group(&wgpu::BindGroupDescriptor {
label: None,
layout: &bind_group_layout,
entries: &[wgpu::BindGroupEntry {
binding: 0,
resource: uniform_buffer.as_entire_binding(),
}],
});
observe crash on unwrap.
Platform
Tested with webgl on the web
Metadata
Metadata
Assignees
Labels
No labels