summaryrefslogtreecommitdiff
path: root/Runtime/Graphics/Shader.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-10-31 17:13:50 +0800
committerchai <chaifix@163.com>2021-10-31 17:13:50 +0800
commit4b24de9ef863f54eb09a5fa1f18e2905cedcc439 (patch)
tree71a816c891ea355529a6a4e0665e0137b4f4810e /Runtime/Graphics/Shader.h
parent601442f94fc0dcfdc5a117c5f87d90b156d53045 (diff)
+ shader command
Diffstat (limited to 'Runtime/Graphics/Shader.h')
-rw-r--r--Runtime/Graphics/Shader.h3
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;