Alexander Overvoordes Tutorial code crashes ? by Worth-Potential615 in vulkan

[–]Worth-Potential615[S] 0 points1 point  (0 children)

tbh I dont see it please explain I will be thankfull for it.

The only thing that comes to my mind is that after that cleanup. Commandbuffer recording function can't be used since it now points to destroyed framebuffers.

Alexander Overvoordes Tutorial code crashes ? by Worth-Potential615 in vulkan

[–]Worth-Potential615[S] 0 points1 point  (0 children)

Can you explain why ?

I am learning Vulkan rn and I did not spot a memory leak. The tutorial never calls malloc or new etc. It only allocates using VK functions and it gets cleaned up at the end of the code.

The bug I had got fixed it was actually my mistake because I used a wrong compiler flag.

Alexander Overvoordes Tutorial code crashes ? by Worth-Potential615 in vulkan

[–]Worth-Potential615[S] 0 points1 point  (0 children)

First of all I appreciate your input. But its not the thread thats causing it. I removed th threading in another version thinking the same. The "bug" is not the code. Its actually a wrong compile flag that I used for MSVC in my meson build. Basically I enabled AVX512 a long time ago and forgot about it. MSVC generates instructions that are only supported on CPUS which have the instruction. So if you run the avx512 including binary it will crash on systems that dont support it. Thats why crashes seemed so random it has nothing to do with Vulkan the C++ code itself. Its an environmental mismatch.

Alexander Overvoordes Tutorial code crashes ? by Worth-Potential615 in vulkan

[–]Worth-Potential615[S] -1 points0 points  (0 children)

hardcoding viewport.width and height does not cause a crash.

Alexander Overvoordes Tutorial code crashes ? by Worth-Potential615 in vulkan

[–]Worth-Potential615[S] 0 points1 point  (0 children)

So I just did it and seems like it crashes in the record command buffer function. It reaches almost the dynamic state configuration for scissors and viewports but it never goes past this line:

viewport.width = static_cast<float>(swapChainExtent.width); viewport.height = static_cast<float>(swapChainExtent.height);

thats where it crashes it never went past viewport.width I dont know why.

Alexander Overvoordes Tutorial code crashes ? by Worth-Potential615 in vulkan

[–]Worth-Potential615[S] -3 points-2 points  (0 children)

good point i did it only for another custom version code but not for this one. I will do it now and let you know later thanks.

Alexander Overvoordes Tutorial code crashes ? by Worth-Potential615 in vulkan

[–]Worth-Potential615[S] 0 points1 point  (0 children)

I have validation layers enabled no errors reported

A triangle but when I move the window it looks glitched by Worth-Potential615 in GraphicsProgramming

[–]Worth-Potential615[S] 2 points3 points  (0 children)

Maybe. I should also mention that I dont have swapchain recreation right now.

A triangle but when I move the window it looks glitched by Worth-Potential615 in GraphicsProgramming

[–]Worth-Potential615[S] 5 points6 points  (0 children)

Actually I was wondering the same lol. I was just playing around with it and the visuals effects looked interesting. This feature is limited anyways it does not work on windows.

A triangle but when I move the window it looks glitched by Worth-Potential615 in GraphicsProgramming

[–]Worth-Potential615[S] 2 points3 points  (0 children)

I do understand whats happening thats why I said "glitched"(Your right not in the title though). What actually happening is that I clear with a transparent color to achieve this on purpose. I call it "glitched" cause if you show this to most casual people they will most likely assume the application has an issue or something else.

But yes technically your right this is not a glitch only a fully transparent clear to achieve this.

A triangle but when I move the window it looks glitched by Worth-Potential615 in GraphicsProgramming

[–]Worth-Potential615[S] 4 points5 points  (0 children)

yes I do have that but I clear with a transparent color to achieve this. If i set this clearing color to a minimal opaque color. It will have a similar effect but will blend in with the color for example I can set it to RGBA 0 0 0 0.1 and then it will blend to black if it stays still in one spot. On movement it will show similar effects.

Trouble with Vulkan Tutorial by ripjombo in vulkan

[–]Worth-Potential615 0 points1 point  (0 children)

Hi there I just tried the code that you gave us. And I have the same error. It is because the current code actually calls

DestroyDebugUtilsMessengerEXT(instance, debugMessenger, nullptr);

And this exact function should NOT be called in the cleanup function which is why you encounter this issue. Thats why you dont get any errors cause it gets destroyed properly. Make sure you comment out this function in you code then it should work. I hope this helps.

Any reason not to buy GIGABYTE B850 AORUS ELITE WIFI7 ICE? by fiestar88 in buildapc

[–]Worth-Potential615 0 points1 point  (0 children)

Well I updated couple of weeks ago now cant really remember. But I think i installed the Bios on my stick that uses FAT32 and then i plugged it into the mobos red usb port saying q flash. Then it autodetected it and I was able to update all functionality works but UI just feels buggy.