diff options
author | Rob Clark <robdclark@chromium.org> | 2020-02-29 11:16:43 -0800 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2020-03-07 09:22:17 -0800 |
commit | 27d4de2bb9bfd9c425848c78d729ba27f9408041 (patch) | |
tree | a24b18a3e42fbddce55d9fbc91076a1c62443eec /common.h | |
parent | f20dc5e295a8605bcbfacbbe487e5452a9e7e312 (diff) | |
download | kmscube-27d4de2bb9bfd9c425848c78d729ba27f9408041.tar.gz |
add shadertoy mode
Doesn't handle shadertoy shaders which use textures for inputs. That
probably wouldn't be straightforward without using the web API to fetch
and introspect the shader. But that sounds like a lot more work.
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -148,10 +148,12 @@ enum mode { NV12_2IMG, /* NV12, handled as two textures and converted to RGB in shader */ NV12_1IMG, /* NV12, imported as planar YUV eglimg */ VIDEO, /* video textured cube */ + SHADERTOY, /* display shadertoy shader */ }; const struct egl * init_cube_smooth(const struct gbm *gbm, int samples); const struct egl * init_cube_tex(const struct gbm *gbm, enum mode mode, int samples); +const struct egl * init_cube_shadertoy(const struct gbm *gbm, const char *shadertoy, int samples); #ifdef HAVE_GST |