Minimally operational Shader editor

Can edit code in GLSL, syntax highlighted, and compile shader. Compatible with ShaderToy code.
This commit is contained in:
Bruno Herbelin
2022-04-23 01:02:31 +02:00
parent 9d7f0b22f7
commit 77dc563219
8 changed files with 212 additions and 141 deletions

View File

@@ -4,6 +4,7 @@
#include <string>
#include <array>
#include <list>
#include <future>
#include <gst/gstutils.h>
@@ -392,7 +393,12 @@ class ShaderEditor : public WorkspaceWindow
{
CloneSource *current_;
bool current_changed_;
bool show_shader_inputs_;
std::map<CloneSource *, ImageFilter> filters_;
std::promise<std::string> *compilation_;
std::future<std::string> compilation_return_;
std::string status_;
public:
ShaderEditor();