Buffer write issue with DX11 + IntelHD · Issue #1060 · gfx-rs/wgpu (original) (raw)
Bug originally filed as gfx-rs/wgpu-rs#585 against wgpu-rs by @qthree, resubmitting for ease of tracking. The referenced branch was https://github.com/qthree/wgpu-rs/tree/double-rect. The body of the issue was left unchanged.
Original Issue
Demonstration of buffer write issue with DX11 + Intel HD. Not intended for merging.
Frame rendering starts before the end of uniform buffer update.
That results in a glitches.
If you see only one rectangle then you're OK.main.rs
has constants at the top for tweaking:
SUBMITS - how many times to redraw using different render pass, command buffer and separate submit
DRAWCALLS - how many times to call draw inside one render pass
AFTER_SUBMIT_DELAY_MS - sleeping between different submits.
I have this issue with:
SUBMITS = 10
DRAWCALLS = 1
AFTER_SUBMIT_DELAY_MS = 10
or
SUBMITS = 1
DRAWCALLS = 1000
AFTER_SUBMIT_DELAY_MS = 0
This demonstration is done using modified hello-triangle
example.