Arbitrary Computation on the GPU Using WebGL
summary
WebGL is used to pass arbitrary arrays as WebGL textures as input to fragment shaders, compute things like matrix multiplication on the GPU, and serialize results back by reading pixels off the canvas readPixels bottleneck. Benchmarks show small matrices are slower on GPU but large ones hit roughly 200x speed; a 1024×1024 multiply runs in minutes on naive code but is far faster on the GPU. Missing bitwise ops in GLSL prevents hashes and Bitcoin mining.
AI-written summary · about
chapters (8)
- 0:00Start
- 0:17FOLLOW ALONG: SETHSAMUEL.GITHUB.IO
- 1:29WHAT IS WEBGL?
- 7:07CPU V GPU
- 8:47COMPUTE SHADERS: COMING SOON(TW)
- 9:39THE HIGH COST OF SERIALIZATION
- 10:01MATRIX MULIPLICATION
- 18:46POTENTIAL APPLICATIONS
related talks
25mArbitrary Computation on the GPU Using WebGL
24mArbitrary Computation on the GPU Using WebGL
22mWebGL For More Than Graphics: Is It Possible?
38mWebGPU: Next-generation 3D Graphics on the Web
25mHow to Program Your GPU (and Not Do It Alone)
34mNext-Generation 3D Graphics on the Web
05mA Brief Intro to GPU Shader Programming in WebGL
28mTurbo charging 2D on the web
