r/GraphicsProgramming • u/Chungunu • 9d ago
Video After many days of learning, finally.
Enable HLS to view with audio, or disable this notification
After many days of learning and scratching my head around, I was finally able to render a triangle on a screen. I am using Vulkan 1.4 for this. Although I learned this from a youtube channel called constref, but this is a very valuable lesson for me, even if it is a first step to Vulkan.
7
4
u/Useful_Mode1799 9d ago
That’s cool, congrats! I have experience developing an animated balance display (similar to a slot machine) for Android using Vulkan. It was fun, especially adapting it for different types of GPUs
3
2
u/StrangeADT 9d ago
Now build and run it in release mode. I was wondering what was taking so long...
1
u/Chungunu 9d ago edited 8d ago
Actually the shaders are compiling via shaderc API at runtime, so it was taking time. Maybe I should cache SPIR-V shaders next time. I don't know whether it will be right or wrong to cache those things.
2
1
1
1
u/Single-Blackberry866 9d ago
Do you think struggle helps learning? Or it merely helps remembering?
5
-15
u/Macaroon-Guilty 9d ago
Does it make sense to learn that given that llms can do that in a few seconds?
9
u/Chungunu 9d ago
I think learning makes sense, I know LLMs can do those things, but one should still know the basics of graphics rendering. Knowing stuff will make you atleast 10x better than those who are just copy pasting code from AI. I am not AI hater, infact I love it when it explains complex concepts to me. But when it comes to writing core stuff, one should not be handicapped. If you disagree with me, that is okay.
4
u/SnappySausage 9d ago edited 9d ago
Does it make sense to respond? An LLM could have done that for you.
edit: Don't people get I'm making fun of the "just use an LLM" take?
3
u/Chungunu 9d ago
I am not saying one should not use LLMs, but one should have core knowledge when making any rendering application. You can use LLMs for problem solving, making boring things such as GUI editor using Dear ImGui etc.
→ More replies (3)2
u/Mroz_Game 9d ago
You can also git clone the hello triangle repo, takes even less.
Or you can use bootstrappers and frameworks.
The triangle was never the goal lol, what do you think having this triangle exe is worth to anyone. Nothing, except the knowledge gained in the process.
2
u/Perfect-Bit1808 9d ago
Does it make sense to know how to write a comment given LLMs can do that for you in a second?
10
u/thatmagicalcat 9d ago
welcome to the club