summaryrefslogtreecommitdiff
path: root/lib/embed-glsl.cpp.m4
blob: 9e4c6d4f02777fc4a69d7aaab29cb495c5469de1 (plain)
1
2
3
4
5
6
7
8
9
10
11
changecom()dnl
// NAME
#include "substr(TYPE,1)-NAME.h"
#include <GL/glew.h>
#include "gfx/gl/shader-source.h"

constexpr const GLchar * src { R"GLSL-EMBED(dnl
include(SOURCE))GLSL-EMBED" };
constexpr auto len { constexpr_strlen (src) };

const GLsource NAME`_'substr(TYPE,1) { src, len, GLTYPE };