diff options
author | chai <chaifix@163.com> | 2021-10-31 17:13:50 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-10-31 17:13:50 +0800 |
commit | 4b24de9ef863f54eb09a5fa1f18e2905cedcc439 (patch) | |
tree | 71a816c891ea355529a6a4e0665e0137b4f4810e /Runtime/Graphics/Shader.h | |
parent | 601442f94fc0dcfdc5a117c5f87d90b156d53045 (diff) |
+ shader command
Diffstat (limited to 'Runtime/Graphics/Shader.h')
-rw-r--r-- | Runtime/Graphics/Shader.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Runtime/Graphics/Shader.h b/Runtime/Graphics/Shader.h index 3410e20..095d9fe 100644 --- a/Runtime/Graphics/Shader.h +++ b/Runtime/Graphics/Shader.h @@ -6,6 +6,7 @@ #include "Runtime/Utilities/UtilMacros.h"
#include "Runtime/Utilities/Assert.h"
#include "runtime/Debug/Log.h"
+#include "RenderCommands.h"
// 着色器程序
class Shader : public LuaBind::NativeClass<Shader>
@@ -28,6 +29,8 @@ public: private:
void CompileProgram(const char* vert, const char* frag, bool keepSrc = false);
+ RenderCommandGroup m_Commands; // 渲染前的状态设置
+
GLint m_ProgramID;
GLint m_FragID;
GLint m_VertID;
|