You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
create buffer with wgpu::BufferUsages::MAP_WRITE and wgpu::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
The text was updated successfully, but these errors were encountered:
This may be related to some missing validation that I recently fixed: #3023.
Part of what this validation ensures is that MAP_WRITE can only be paired with COPY_SRC unless wgpu::Features::MAPPABLE_PRIMARY_BUFFERS is enabled.
Although MAPPABLE_PRIMARY_BUFFERS documentation claims it should be supported on all native platforms, but the gles and dx11 backends don't add it to the list of supported features so I'm not sure if that is true.
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#L364Repro steps
wgpu::BufferUsages::MAP_WRITE
andwgpu::BufferUsages::UNIFORM
observe crash on unwrap.
Platform
Tested with webgl on the web
The text was updated successfully, but these errors were encountered: