Piglet custom shader PoC

This is a PoC for compiling Piglet fragment shaders using Mesa3D.

  • You need to provide a compatible vertex shader, it’s needed because Mesa3D compiles both shaders at once.
  • At most one sampler is currently supported.
  • This a PoC and can break at any time.

victim.c is loosely based on this EGL sample

Dependencies

  • Mesa3D (obviously)
  • CLRX

Usage

cd compiler
make
bash compile.sh vertex.glsl fragment.glsl output.bin # only outputs the fragment part for now

GitHub

View Github