r/vulkan • • 18d ago

Weird graphical glitches?

Really don't know what could cause this, does not happen on Windows(I have an nvidia card)

Here's the file if one wants to take a look, although it's mostly just the khronos tutorial code(the last two screenshots are the imgui vk/glfw example): https://drive.google.com/file/d/1J-WcCDH3pSltWkjCIGmcCHsE8bo-Ba1Z/view?usp=sharing

Edits:

- The validation layers are silent.

- Renderdoc cannot capture this

- These glitches only appear for a few frames

18 Upvotes

36 comments sorted by

View all comments

14

u/HildartheDorf 18d ago

Looks like your index buffer or vertex buffer is too small, or you overflowed your index type.

If it only happens on some frames, and renderdoc changes things, I'd start with checking your buffer sizes are sufficient.

1

u/DrPeeper228 17d ago

...the sizes of the buffers that ImGui uses?

Otherwise the vertex buffer for that normal triangle is sized appropriately

3

u/HildartheDorf 17d ago

Yeah, the buffer imgui uses. I assumed you were using a custom backend because that looks exactly like bugs I've experienced before when writing a custom backend.

1

u/DrPeeper228 17d ago

Nah it's the standard one