summaryrefslogtreecommitdiff
path: root/common.h
diff options
context:
space:
mode:
authorRob Clark <robdclark@chromium.org>2020-02-29 11:16:43 -0800
committerRob Clark <robdclark@chromium.org>2020-03-07 09:22:17 -0800
commit27d4de2bb9bfd9c425848c78d729ba27f9408041 (patch)
treea24b18a3e42fbddce55d9fbc91076a1c62443eec /common.h
parentf20dc5e295a8605bcbfacbbe487e5452a9e7e312 (diff)
downloadkmscube-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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/common.h b/common.h
index 9548e2a..d7c3e50 100644
--- a/common.h
+++ b/common.h
@@ -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