Skip to content

Instantly share code, notes, and snippets.

@Wumpf
Wumpf / index.html
Last active October 23, 2023 11:23
Repro case for shader crash on Linux Chrome Intel
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Compiling & linking a large shader</title>
<script src="main.js" type="module"></script>
<script id="vertexShader" type="x-shader/x-vertex">#version 300 es
@Wumpf
Wumpf / prefix_sum.wgsl
Created August 6, 2023 07:17
Prefix sum poor fix
@group(0) @binding(0)
var<storage, read> numbers_input: array<u32>;
@group(0) @binding(1)
var<storage, read_write> numbers_output: array<u32>;
var<workgroup> shared_atomic: array<atomic<u32>, 64>;
var<workgroup> shared_workgroup_memory: array<u32, 64>;
@Wumpf
Wumpf / gist:4a7bf26971e8cac434ee994a246f4a7e
Last active October 2, 2021 12:47
ffmpeg cheatsheet for pic->vid
H264, 25fps:
."C:\Users\andre\ffmpeg.exe" -i %d.png -c:v libx264 -pix_fmt yuv420p output.mp4
H264, 60fps:
."C:\Users\andre\ffmpeg.exe" -framerate 60 -i screenshot%d.png -r 60 -c:v libx264 -pix_fmt yuv420p output.mp4
H265 (windows can't play it!)
."C:\Users\andre\ffmpeg.exe" -i %d.png -c:v libx265 -pix_fmt yuv420p output.mp4
@Wumpf
Wumpf / cfd.md
Last active April 10, 2024 22:39
Notes on CFD