varjo
varjo copied to clipboard
Lisp to GLSL Language Translator
I'm integrating Varjo/Vari into a project with customized [pipeline definition (material)](https://google.github.io/filament/Materials.html#materialdefinitions/format/example), but GLSL compatible. As far as I've got with Varjo, it seems it cannot produce GLSL in a way...
Hey, I've added support for extensions and experimental support for Vulkan/SPIR-V. For both I've changed the semantics of the `context` arg in `make-stage` (nowhere else), which now also allows lists...
I'm trying to `let` bind an array of vec4's, and I can't for the life of me figure this out :) I'm trying to generate something like this: ```glsl vec4...
I was reading this https://timothylottes.github.io/20180316.html and i really liked this pattern. ``` #define SIZ_ (256*1024*1024) layout(set=0,binding=0,std430) buffer ssbo0_ {uint bufA32[SIZ_/4];}; layout(set=0,binding=0,std430) buffer ssbo1_ {uvec2 bufA64[SIZ_/8];}; layout(set=0,binding=0,std430) readonly buffer ssbo2_ {uint...
The glsl code emitted for lognand is `return (~(A & B));`. Unfortunately "\~(" has semantic meaning to #'format so this causes an error when glsl-chunk-from-compiled calls glsl-line, which in turn...
Currently, Varjo doesn't work with OpenGL 2.1 (GLSL 120). The most immediate issue is - Varjo emits `layout (location = n)`, which GLSL 120 doesn't support - Varjo emits in/out...
It would be nice if one can call Varjo function from lisp directly to test its value on specific input. This can be useful in several cases, including debugging, and...
I get this: ``` ; caught ERROR: ; during macroexpansion of (MATCH FORM (# X) ...). Use *BREAK-ON-SIGNALS* to intercept. ; Non-linear pattern: (STRUCTURE FARE-QUASIQUOTE::LIST* (FARE-QUASIQUOTE::QUOTE LET*) (A A) (FARE-QUASIQUOTE::LIST*...
The documentation says that multidimensional arrays are not supported but that arrays of arrays work fine. I can't figure out how to generate the following glsl: ``` struct thing {...
varjo-release-quicklisp-6150bdcb-git quicklisp 2020-07-15 quicklisp client 2020-01-04 CCL v1.12-25-g595a5cf MacOSX 10.14.6 "Mojave" ⋮ 38194: (FN::E (INTERN VARJO.INTERNALS:LISP-NAME :VARI.GLSL)) 38195: (CCL::MAP1 FN::E (((DECLARE (NOTINLINE INTERN)) (INTERN VARJO.INTERNALS:LISP-NAME :VARI.GLSL))) :LIST T) 38196: (MAPCAR...