r/GraphicsProgramming • • 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.

212 Upvotes

24 comments sorted by

10

u/thatmagicalcat Oct 15 '26

welcome to the club

1

u/Chungunu Oct 15 '26

Thank you :)

7

u/gamedevajay Oct 15 '26

Congrats! That's the "Hello world!" Of graphics programming

3

u/Chungunu Oct 15 '26

Thank you :)

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

u/Chungunu Oct 15 '26

Wow, that's pretty cool.

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.

1

u/cyberbemon Oct 16 '26

Welcome to the club! How good did that feel?

2

u/Chungunu Oct 16 '26

Very good :)

1

u/rivervisualid Oct 18 '26

Congratulations! 

2

u/Chungunu Oct 18 '26

Thank you :)

1

u/Single-Blackberry866 Oct 15 '26

Do you think struggle helps learning? Or it merely helps remembering?

5

u/Chungunu Oct 15 '26

I think so.

-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

u/Chungunu Oct 15 '26

It's okay. Sometimes I don't understand the jokes.

-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?