Logo
Documentation: A love letter to your future self.
  • Home
  • Hot
  • Random
  • Search

Browse

  • AI AI
  • AWS AWS
  • Agile Agile
  • Algorithms Algorithms
  • Android Android
  • Apple Apple
  • Azure Azure
  • Backend Backend
  • Bash Bash
  • C++ C++
  • Cloud Cloud
  • All Categories
As an Amazon Associate ProgrammerHumor.io earns from qualifying purchases.

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

Wgsl Memes

Posts tagged with Wgsl

Wgsl Code Snippet Posted By Notch (Yes, That Notch)

Gamedev Programming Webdev
6 hours ago 18.8K views 0 shares
Wgsl Code Snippet Posted By Notch (Yes, That Notch)
So Notch, the legendary creator of Minecraft, decided to write his own min() and max() functions in WGSL (WebGPU Shading Language) instead of using the built-in ones. And not just once—he wrote them for every possible combination of parameters: 3 args, 4 args, 5 args, 6 args, vec2f, vec3f, vec4f... the full buffet. This is like manually implementing addition for every possible number instead of just using the + operator. The stdlib is right there , Notch. WGSL has native min() and max() functions that work with any number of arguments and vector types. But nope, gotta reinvent the wheel with 15+ function overloads. The best part? He's using his custom functions to implement... more custom functions. It's turtles all the way down. When you've built an empire on procedurally generated blocks, I guess you just can't stop generating things unnecessarily.

Today's picks

There Are 10 Types Of People, Binary Joke - Ceramic Mug, Red/White

There Are 10 Types Of People, Binary Joke - Ceramic Mug, Red/White

Affiliate
$16.99
NordVPN

NordVPN

Sponsored
VPN
Margin Left

Margin Left

Programming
97.8K views 4 years ago