Skip to content

Instantly share code, notes, and snippets.

View greggman's full-sized avatar
😁

Greggman greggman

😁
View GitHub Profile
@greggman
greggman / README.md
Last active November 14, 2025 04:29
WebGPU: Out of bounds textureLoad swizzle test
@greggman
greggman / README.md
Created November 11, 2025 00:25
WebGPU: Use uniform buffer larger than 64k
@greggman
greggman / README.md
Created November 6, 2025 05:03
Canvas 2D: split drawing via drawElement
@greggman
greggman / README.md
Created November 5, 2025 04:54
Canvas 2D: split drawing
@greggman
greggman / README.md
Created November 5, 2025 04:54
Canvas 2D: draw SVG image
@greggman
greggman / README.md
Last active November 6, 2025 05:52
Canvas 2D: drawElement
@greggman
greggman / rerun.py
Last active October 29, 2025 05:27
lldb rerun for finding race
# note: If you rename this file you must change the name at line 124 to match.
# further, do not use `-` in the name. lldb will complain.
import lldb
import time
# Define a short timeout for waiting in the loop (in seconds)
WAIT_TIMEOUT = 1.0
def relaunch_until_stop(debugger, command, result, internal_dict):
"""
@greggman
greggman / cpp.md
Created October 27, 2025 06:27
cpp notes

cpp notes

hexdump

void HexDump(const std::vector<uint8_t>& data, std::ostream& os = std::cout) {
    const int BYTES_PER_LINE = 16;

    // Set up stream for hex output
    os << std::hex << std::uppercase << std::setfill('0');
@greggman
greggman / repo.html
Created October 6, 2025 04:54
three.js rendering issue repo
<!DOCTYPE html>
<html>
<style>
canvas {
margin: 5px;
max-width: 300px;
max-height: 300px;
}
</style>
@greggman
greggman / README.md
Last active October 1, 2025 07:52
WebGPU: Logo