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

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

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

@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

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with koyu.space!