HNHacker News
TopNewBestAskShowJobs

tomtomlapomme

103 karma · joined October 5, 2011

submissionscomments
tomtomlapomme··on All Horses Are the Same Color
This is how induction proof work. You prove that something is true for a base (n = 1) case then you prove that if it is true for n it has to be true for n + 1. Therefore it is true for any n.

The flaw is that the second part of the proof requires n >= 2

tomtomlapomme··on More compute shaders
__local is meant to describe memory shared across the whole workgroup meaning each operation is visible to all SIMD lanes. Uniform are variables that have are only visible to one lane but can be proven to have the same value for all SIMD lanes.

In general it is up to the compiler to decide what variables are uniform as it is pretty easy for user to get it wrong. Metal shader language as a uniform marker: uniform<int> i = …;

Metal spec: https://developer.apple.com/metal/Metal-Shading-Language-Spe...