VKR: My Vulkan experiment written in Rust #1479
Replies: 1 comment 3 replies
-
I think I found the issue, even though I do not understand it completely. It relates to VMA, which allows me to better use memory taking advantage of big preallocated chunks of memory. So, I create a buffer A of This is where something bad happens: when I destroy buffer A at offset 0, instead of clearing just 16 bytes, for some reason it clears 32 bytes. Last 16 bytes belong to my quad vertex buffer, now unusable. My workaround for the moment is to force all buffers size to a minimum of 32 bytes. |
Beta Was this translation helpful? Give feedback.
-
Hi everyone!
I started this project to improve my skills with both Vulkan and Rust and it also happens that I own a M1 macbook so I gladly use it for development and testing.
A bunch of releases are available which show the progress, from drawing simple shapes and textures, to changing pipelines at runtime within a renderpass with two subpasses.
My last effort was to introduce shadow mapping, unfortunately it does not work as expected on the M1 and I am not sure if it makes sense to open an issue here.
Using one renderpass with two subpasses works fine. Inserting another render pass (shadowmap) before the main one breaks rendering in this way: while the shadowmap is correctly sampled and drawn in the second renderpass, the attachments drawn in the first subpass of the main renderpass are black in some frames (2/3?), so they are either:
If you would like to reproduce the issue, please checkout branch sync-issue and follow the
README.md
to set everything up, then runcargo run --bin 5-shadow
.Beta Was this translation helpful? Give feedback.
All reactions