Skip to content

Instantly share code, notes, and snippets.

View seanisom's full-sized avatar
🌉
YC W24

Sean Isom seanisom

🌉
YC W24
View GitHub Profile
@Bloodwyn
Bloodwyn / meshShaderTriangulation.hlsl
Last active September 24, 2025 15:14
Mesh Shader Triangulation
#include "Common.h"
/*
author: Bastian Kuth
description: A d3d12 mesh shader that receives a polygon of up to 32 points and triangulates it using ear clipping.
Threads of a wave perform the checks in parallel, so should be fairly fast.
Requires 32 wave size, so WARP or some intel hardware might not work.
how to run: Meant to be used with the WorkGraphPlayground: https://github.com/GPUOpen-LibrariesAndSDKs/WorkGraphPlayground
@Treeki
Treeki / lzma_sample.cpp
Created May 24, 2017 21:52
simple LZMA SDK compression/decompression example
// note: -D_7ZIP_ST is required when compiling on non-Windows platforms
// g++ -o lzma_sample -std=c++14 -D_7ZIP_ST lzma_sample.cpp LzmaDec.c LzmaEnc.c LzFind.c
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <memory>
#include "LzmaEnc.h"
#include "LzmaDec.h"