-
Notifications
You must be signed in to change notification settings - Fork 0
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chapter 2 Comments #5
Comments
In the vulkan-guide folder I created a shader folder and included the triangle.vert and triangle.frag folder. Then re-generated the solution (and it shows in cmake that it build those ahders) and opened up my solution and some files called triangle.vert.sprv.rule and triangle.frag.sprv.rule. It is not located in a shaders folder, instead in some cmake folder in the build folder, and when I give those paths into load_module it doesnt seem to want to open. Did I do something wrong with my set up? |
I figured out the issue on my own, I didn't build my shaders. |
Thanks I really enjoy the way this is written. |
std::vector<uint32_t> buffer(fileSize / sizeof(uint32_t)); Number of words needs to round-up. fileSize + sizeof(uint32_t) - 1 / sizeof(uint32_t) |
By just simple doing |
Is there missing a |
can I ask why the relative spirv path is |
@zheng95z Yes, this text is actually a little bit out of date. It'd be really easy to fix it, just modify the markdown and thats it. The source code should be correct (but worth checking too) |
Aren't we actually looking for a FILO structure? I'm confused why we need an std::dequeue? Doesn't seem like the std::dequeue is really utilized. We could just use a normal std::vector to push_back and iterate from the end to the beginning. Maybe it gets more complex down the line? |
Check the code in VkBootstrap.cpp, it has a function for destroy_instance, if you use it instead of calling vkDestroyInstance in cleanup, you won't see the VK_OBJECT_TYPE_DEBUG_UTILS_MESSENGER_EXT validation error. |
i keep getting this error for some reason (halfway through chapter 2) Process finished with exit code 139 (interrupted by signal 11: SIGSEGV) im using clion on arch linux |
also the debugger gets stuck on |
the previous comment had a problem with copying and pasting but the output is: Triangle fragment shader succesfully loaded Process finished with exit code 134 (interrupted by signal 6: SIGABRT) and this even happens when i copy the entire github repository for chapter 2 and build it |
DiarrheaMcgee, |
i didnt forget but after 9 hours of debugging i found out that it only works when i run it in the terminal but it still gives error messages |
is it because it requires a terminal for the output and has a fit if it cant output a log |
Running into an issue where:
|
Gah sorry if there was a way to edit your own comments, but I'm also getting other error messages regarding incorrect sTypes? This is for cleanup and deletion queue
|
If I set the timout = 0 in vkAcquireNextImageKHR, an error occurs. Why?My video card is UHD630.
|
For the Vertex Shader it would be good to put |
At the end of the init_sync_structures deletion queue you should have a |
Setting up Triangle shaders - Vulkan Guide
Brand new guide to vulkan graphics programming
https://www.vkguide.dev/docs/chapter-2/triangle_walkthrough/
The text was updated successfully, but these errors were encountered: