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

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

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