@LordMZTE

import std.stdio;
void main(string[] args) {
int num1 = 1;
int num2 = 2;
writeln(num1+num2);
writeln("Press enter...");
readln();
}

You only have to do this to add one number to the another in D.

Why is rust and vulkan so clunky.

@neXtTech you know that this whole thing is a joke right? also these are some very convenient vulkan bindings, the equivalent in c would be well over 1k lines

Follow

@LordMZTE i genuinely thought all this code added 2 numbers in rust

· · Web · 1 · 0 · 0

@neXtTech it connects to the gpu, creates a compute shader pipeline with a GLSL shader that adds 2 nums, allocates a cpu shared buffer with the numbers, runs the compute pipeline in the gpu and then reads back the number from the shared buffer and prints it.

Sign in to participate in the conversation
NerdCulture

All friendly creatures are welcome. Be excellent to each other, sei humanistisch, keine Nazis, keine Hassrede. Nicht nur für Nerds, aber die Domain ist irgendwie cool. ;) Keine Bots im Allgemeinen erlaubt! (nur mit vorheriger Genehmigung). Sprache ist hier hauptsächlich Deutsch, Englisch auch erlaubt. --- All friendly creatures are welcome. Be excellent to each other, live humanism, no nazis, no hate speech. Not only for nerds, but the domain is somewhat cool. ;) No bots in general! (only with prior permission). Main language is German, English is allowed.