You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently getting a seg fault in the above function. My code previously did not have this issue and I'm logging everything in my code to try to figure out why, everything seems present, and not null, array sizes are correct. etc.
SDL does not give me any info as to why I got a seg fault, is there a way to get more info? Any recommendations to debug this? https://github.com/WolfEYc/revahcard/tree/lighting
this is the current branch that has the issue, (main branch is just fine)
Ok i did fix it, it was because I was binding a Frag storage buffer to with first_slot=2
turns out i should just bind it to slot 0 and sdl does some magic because it knows that its not a sampler i guess.
better docs on this + getting an error msg instead of a segfault would be nice.
Not exactly sure if im using a dev/debug build of sdl3 in order to get these errors though, i have vulkan validation layers, and sdl set to verbose logging for all priorities.
The text was updated successfully, but these errors were encountered:
Binding a slot that is not declared by the shader object is an out of bounds error right now. We could probably sanity check that in SDL_gpu.c instead of segfaulting.
Uh oh!
There was an error while loading. Please reload this page.
I am currently getting a seg fault in the above function. My code previously did not have this issue and I'm logging everything in my code to try to figure out why, everything seems present, and not null, array sizes are correct. etc.
SDL does not give me any info as to why I got a seg fault, is there a way to get more info? Any recommendations to debug this?
https://github.com/WolfEYc/revahcard/tree/lighting
this is the current branch that has the issue, (main branch is just fine)
Ok i did fix it, it was because I was binding a Frag storage buffer to with first_slot=2
turns out i should just bind it to slot 0 and sdl does some magic because it knows that its not a sampler i guess.
better docs on this + getting an error msg instead of a segfault would be nice.
Not exactly sure if im using a dev/debug build of sdl3 in order to get these errors though, i have vulkan validation layers, and sdl set to verbose logging for all priorities.
The text was updated successfully, but these errors were encountered: