Skip to content

tigert1998/glsl-on-cpu

Repository files navigation

OpenGL Shader on CPU

build

$ gradle build
$ java -jar build/libs/glsl-on-cpu-${VERSION}.jar -h
usage: glsl-on-cpu
 -a,--dump-ast      Dump debugging AST
 -h,--help          Helping info
 -i,--input <arg>   Input file path
 -v,--verbose       Print verbose scope and function information
$ java -jar build/libs/glsl-on-cpu-${VERSION}.jar -i ${PATH_TO_INPUT_FILE} 

demos

title and author snapshot reference
\ yes
0, 4, 7, 5, 2, 6, 1, 3,
8_queens.fs
8_queens.c
"Pikachu" by nyri0@shadertoy pikachu.fs
rendering_main.cc
"The Drive Home" by Martijn Steinrucken aka BigWings drive.fs
rendering_main.cc

to-do

  • comma expression
  • macro
  • postfix increment/decrement
  • switch
  • uniform, texture, etc (rendering pipeline related)
  • built-in functions (mix, fract, etc)

additional feature

  • in-line structure definition
  • extern "C" and demangling

Releases

No releases published

Packages

No packages published