blob: f4dc0a530962b856cf8cf1caba2421408449c932 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#pragma once
#include <exception>
#include <string>
#include "Runtime/Threading/Mutex.h"
#include "Runtime/Threading/Job.h"
// ±ąŅėGLSL(GameLab Shading Language)
// in: .glsl path
// out: vsh & fsh
class CompileGLSLJob : public Job
{
};
// in: glsl shader
// out: vsh & fsh
class CompileGLSLShaderJob : public Job
{
};
class GLSLCompileException : std::exception
{
public:
GLSLCompileException(const char* what)
: std::exception(what)
{
}
};
class GLSLCompiler
{
public:
static void Compile(std::string& src, std::string& vsh, std::string& fsh)/*throw GLSLCompileException*/;
};
|