]> git.sesse.net Git - movit/blobdiff - bundled_shaders.h
Compile shaders into the library.
[movit] / bundled_shaders.h
diff --git a/bundled_shaders.h b/bundled_shaders.h
new file mode 100644 (file)
index 0000000..26d6e06
--- /dev/null
@@ -0,0 +1,18 @@
+#ifndef _MOVIT_BUNDLED_SHADERS_H
+#define _MOVIT_BUNDLED_SHADERS_H 1
+
+// Shader files that are compiled into the library.
+
+namespace movit {
+
+struct BundledShader {
+       const char *filename;  // nullptr for end.
+       size_t offset;  // Into shader_bundle.
+       size_t length;
+};
+extern BundledShader bundled_shaders[];
+extern const char *shader_bundle;
+
+}  // namespace movit
+
+#endif  // _MOVIT_BUNDLED_SHADERS_H