r/GraphicsProgramming • u/Chungunu • Oct 15 '26
Video After many days of learning, finally.
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 Oct 15 '26
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 Oct 16 '26
Now build and run it in release mode. I was wondering what was taking so long...
1
u/Chungunu Oct 16 '26 edited Oct 16 '26
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 Oct 15 '26
Do you think struggle helps learning? Or it merely helps remembering?
5
-15
u/Macaroon-Guilty Oct 15 '26
Does it make sense to learn that given that llms can do that in a few seconds?
9
u/Chungunu Oct 15 '26
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 Oct 15 '26 edited Oct 15 '26
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 Oct 15 '26
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.
2
u/SnappySausage Oct 15 '26
I was making fun of the fact the guy was telling you to use AI instead of actually learning something (or doing it for fun).
1
-3
u/Macaroon-Guilty Oct 15 '26
Just for the record, I asked an open question. Not suggesting anything to anyone
2
u/Mroz_Game Oct 15 '26
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 Oct 15 '26
Does it make sense to know how to write a comment given LLMs can do that for you in a second?
10
u/thatmagicalcat Oct 15 '26
welcome to the club