Skip to content

Instantly share code, notes, and snippets.

View Bloodwyn's full-sized avatar
👨‍🎓

Bastian K. Bloodwyn

👨‍🎓
  • Nürnberg
View GitHub Profile
@Bloodwyn
Bloodwyn / meshShaderTriangulation.hlsl
Last active July 14, 2025 22:39
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