FNA-XNA / FNA3D

FNA3D - 3D Graphics Library for FNA
http://fna-xna.github.io/
Other
287 stars 48 forks source link

Vulkan: Fix NO_OVERWRITE behavior #87

Closed thatcosmonaut closed 3 years ago

thatcosmonaut commented 3 years ago

We always search for unbound sub-buffers on SetBufferData, and the bound state only resets after work completes, so systems that relied on correct NO_OVERWRITE behavior had flickering. Now we only search for an unbound sub-buffer if NO_OVERWRITE is not set. We also had some unclear and redundant record keeping on bound vertex buffers so I fixed that too.