From 4b24de9ef863f54eb09a5fa1f18e2905cedcc439 Mon Sep 17 00:00:00 2001 From: chai Date: Sun, 31 Oct 2021 17:13:50 +0800 Subject: + shader command --- Runtime/Graphics/Shader.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Runtime/Graphics/Shader.h') 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 @@ -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; -- cgit v1.1-26-g67d0