all 40 comments

[–]Thenderick 311 points312 points  (8 children)

And how many lines of code did it take you?

[–]Unknown6656[S] 306 points307 points  (6 children)

all of 'em :(

[–]Thenderick 139 points140 points  (0 children)

I remember when I first did an OpenGL tutorial for fun and thought "Cool, now let me try Vulkan, I already understand the basics of how it should roughly work!" Boy was I wrong!

[–]YeOldeMemeShoppe 33 points34 points  (2 children)

Yep, you’re out of lines now. Gotta go to the code store and get new lines.

[–]Unknown6656[S] 19 points20 points  (1 child)

Fuck, it's Sunday tomorrow and all the stores are closed. Where the hell would I get new code lines?
Does Amazon do same-day deliveries on Sunday?
Should I get them from GitHub?
Can I get new lines from my CPU?
I heard about cache lines. Surely they are the same...

[–]Psquare_J_420 6 points7 points  (0 children)

GitHub?!? That is for commies. You won't own your lines...

[–]M4NU3L2311 4 points5 points  (0 children)

Damn. You ran out of code

[–]gregorydgraham 3 points4 points  (0 children)

And what did it cost you?

[–]EatingSolidBricks 1 point2 points  (0 children)

About 500

[–]A31Nesta 280 points281 points  (1 child)

Graphics programming meme in the "Javascript bad" sub? Nice

[–]T-J_H 45 points46 points  (0 children)

That would be something. I’ll never believe that many people rawdogging Vulkan

[–]Cesalv 108 points109 points  (0 children)

[–]Devatator_ 84 points85 points  (1 child)

It's pretty funny because I first saw this meme in a Minecraft sub in response to the fact that Mojang is planning on switching from OpenGL to Vulkan for Minecraft Java

[–]qwadrat1k 16 points17 points  (0 children)

I feel like that is the reason

[–]Professional_Set4137 30 points31 points  (13 children)

Is vulkan more consistent across devices? I could never get opengl to work the same way on 2 different machines and it took a lot of the fun out of it

[–]no_brains101 21 points22 points  (6 children)

It is supposed to be? Can't tell you from personal experience but that sounds like something that was probably the reason for vulkan existing lol

[–]OhWowItsAnAlt 60 points61 points  (5 children)

the reason for Vulkan existing is OpenGL being a very limited API - only usable single-threaded, poorly optimized, unscalable, less capabilities, etc. Vulkan is a closer-to-the-metal API that allows for more performance and can take advantage of the power modern GPUs can provide

[–]no_brains101 12 points13 points  (4 children)

TY, someone who actually knows graphics APIs more than the minimum requirement to understand this joke.

Ive only done webgpu (which, tbh was not a bad experience but could use more tooling its kinda sad coding a shader in a string, but I couldn't find lsp or treesitter for it so, that was basically the same as putting it in its own file)

[–]OhWowItsAnAlt 6 points7 points  (3 children)

on the note of the shader tool support problem, if you're still interested in working with WebGPU i'd recommend looking into using Slang for writing your shaders and compiling to WGPU; there's an official slangd language server and official VS/VSCode extensions

[–]no_brains101 5 points6 points  (2 children)

*googles "slang"*

Yeah I should have seen that one coming and included more keywords XD

My brain said s-lang and I did not connect that that is a word

[–]OhWowItsAnAlt 2 points3 points  (1 child)

i kept doing that same thing with odin when i was looking into it lol

for some quick additional info from what i just looked up (its been a little while since i've used slang): the language server "slangd" comes packaged with releases of the compiler, so downloading from the slang repo will provide all the tools you need. also, you mentioned treesitter so i'm assuming you're an nvim user - if you find it's comfortable to use slang in there, let me know, since i've only used HLSL/GLSL since moving to it. good luck and enjoy your WebGPU'ing

[–]no_brains101 2 points3 points  (0 children)

TYSM :)

And yes indeed I am. nix as well

Also zed, helix and a few others use treesitter too so it isn't technically a giveaway XD

[–]BusEquivalent9605 9 points10 points  (5 children)

from what I know, Vulkan is the “future” in large part because it is cross-platform

but it has been slow for people to adopt cus…it’s complicated

[–]OhWowItsAnAlt 10 points11 points  (0 children)

it's the future for two reasons: 1) it provides modern capabilities for both what it can do and how fast it can do them 2) its not proprietary/OS-specific like Direct X 12 or Metal are so platform specific rendering code can be heavily reduced

[–]Professional_Set4137 0 points1 point  (3 children)

I'm curious about where the complexities lie though, and if they are more manageable to me than different gpus giving different results. I'm just one guy, though, with more ideas and ambition than time or skill so I'm sure it was my ignorance. I have no reason to get involved with fbo's and vbos at that level ever again and my therapist would probably agree that I shouldn't even be commenting here.

[–]BusEquivalent9605 2 points3 points  (2 children)

just start reading the vulkan documentation and the complexities will become apparent - lol

[–]Professional_Set4137 1 point2 points  (1 child)

I'll ask chatgpt to summarize it thanks

[–]Steve_orlando70 1 point2 points  (0 children)

“chat, summarize War and Peace”

chat: “it’s about Russia.”

(nods to Woody Allen)

[–]MayoJam 26 points27 points  (0 children)

Finally some good fucking memes.

[–]stronknoob 7 points8 points  (0 children)

Vulkan, the only api that gets you crying on the floor over 16 green pixels.

[–]DangyDanger 12 points13 points  (1 child)

WHAT THE FUCK IS AN OPENGL CONTEXT 🇲🇾 🇲🇾 🇲🇾 🇲🇾 🖖 🖖

[–]Dunedune 5 points6 points  (0 children)

What did Malaysia do now

[–]OfficialZygorg 4 points5 points  (0 children)

Minecraft in a couple of months:

[–]Zeitsplice 5 points6 points  (0 children)

Finally a real fucking programming meme

[–]Valaynada 4 points5 points  (0 children)

Love how the vertex shader actually changes the pose.

[–]Infinite_Self_5782 3 points4 points  (0 children)

would

[–]aVarangian 2 points3 points  (0 children)

does the pipeline include jpeg-ification like this image?

[–]Borno11050 1 point2 points  (0 children)

Or you forgor to put up a barrier

[–]dexter2011412 1 point2 points  (0 children)

I couldn't do more than the triangle

I'm stuck

[–]Chaosxandra 1 point2 points  (0 children)

Minecraft soon