From 796b4b05ec62eb5d58a634854998f485072e8a2b Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 29 Oct 2021 15:02:46 +0800 Subject: *passing texture to glsl --- Runtime/Graphics/GfxDevice.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Runtime/Graphics/GfxDevice.h') diff --git a/Runtime/Graphics/GfxDevice.h b/Runtime/Graphics/GfxDevice.h index ef7788c..68cd6c0 100644 --- a/Runtime/Graphics/GfxDevice.h +++ b/Runtime/Graphics/GfxDevice.h @@ -67,6 +67,9 @@ public: void SetUniformVec3(const char* name, Internal::Vector3 vec3); void SetUniformVec4(const char* name, Internal::Vector4 vec4); void SetUniformMat4(const char* name, Internal::Matrix44 mat4); + void SetUniformTexture(const char* name, Texture* texture); + + void ResetUniformsState(); void BeginFrame(); void EndFrame(); -- cgit v1.1-26-g67d0