CedricGuillemet / Imogen

GPU Texture Generator
MIT License
761 stars 64 forks source link

Replacement for libtcc #67

Closed CedricGuillemet closed 5 years ago

CedricGuillemet commented 5 years ago

Currently some nodes (paint, file read/write) are coded in C using libtcc. There are some unrecoverable errors, will not work in JS world because of JIT and I don't feel like recompiling libtcc with emscripten. I'm looking for alternative solution. 1 might be to replace it with a JS interpreter. What are other options?

boberfly commented 5 years ago

Hey @CedricGuillemet This is probably a big dependency (LLVM), but what about Open Shading Language? It is what Gaffer decided on for leveraging OSL for more than just shading but also mesh deformation and expressions.

Another idea is what about SPIRV-Cross with ISPC? https://software.intel.com/en-us/articles/spir-v-to-ispc-convert-gpu-compute-to-the-cpu HLSL or GLSL compute could just be used then which could be really cool.

CedricGuillemet commented 5 years ago

The need is much more simple. Only simple commands to run to change parameters on the rendering target/blend mode,...

data-man commented 5 years ago

AsmJit and Blend2D ?

CedricGuillemet commented 5 years ago

No more like lua or angelscript

data-man commented 5 years ago

mruby Wren Squirrel Lily ...

Embedded scripting languages

CedricGuillemet commented 5 years ago

duktape looks nice

data-man commented 5 years ago

lvg uses libtcc and picoc. Maybe it will useful for you.