summaryrefslogtreecommitdiff
path: root/Source/Asura.Engine/Graphics/Shader.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-02-22 13:50:12 +0800
committerchai <chaifix@163.com>2019-02-22 13:50:12 +0800
commit22ba8d6af9e9a67e6bac11365df23b6a61fa62c7 (patch)
tree7e86accc40e3b99b8ae575f718136239fc249d2d /Source/Asura.Engine/Graphics/Shader.h
parentf756fa0a17675ea70956af9c42f6c1117a84f9bd (diff)
*修改缩进
Diffstat (limited to 'Source/Asura.Engine/Graphics/Shader.h')
-rw-r--r--Source/Asura.Engine/Graphics/Shader.h74
1 files changed, 37 insertions, 37 deletions
diff --git a/Source/Asura.Engine/Graphics/Shader.h b/Source/Asura.Engine/Graphics/Shader.h
index e15c6e0..e22fc66 100644
--- a/Source/Asura.Engine/Graphics/Shader.h
+++ b/Source/Asura.Engine/Graphics/Shader.h
@@ -11,56 +11,56 @@
namespace AsuraEngine
{
- namespace Graphics
- {
+ namespace Graphics
+ {
- class Material;
+ class Material;
- ///
- /// Ò»¸öshaderÊÇÒ»¸öÔÚ²ÄÖʼ乲ÏíµÄ³ÌÐò¡£Shader±¾Éí²»±£´æuniformsºÍ¶¥µãÊý¾Ý£¬Ö»±£´æuniforms location¡£
- ///
- class Shader
- {
- public:
+ ///
+ /// Ò»¸öshaderÊÇÒ»¸öÔÚ²ÄÖʼ乲ÏíµÄ³ÌÐò¡£Shader±¾Éí²»±£´æuniformsºÍ¶¥µãÊý¾Ý£¬Ö»±£´æuniforms location¡£
+ ///
+ class Shader
+ {
+ public:
- Shader();
- ~Shader();
+ Shader();
+ ~Shader();
- private:
+ private:
- friend class Material;
+ friend class Material;
- ///
- /// ±£´æÁËËùÓÐshaderµÄuniforms±äÁ¿µÄIDÓ³Éä¡£
- ///
- static StringMap<int> sUniformsID;
+ ///
+ /// ±£´æÁËËùÓÐshaderµÄuniforms±äÁ¿µÄIDÓ³Éä¡£
+ ///
+ static StringMap<int> sUniformsID;
- ///
- /// »ñµÃuniform±äÁ¿µÄID¡£
- ///
- static int GetUniformID(const String& name);
+ ///
+ /// »ñµÃuniform±äÁ¿µÄID¡£
+ ///
+ static int GetUniformID(const String& name);
- ///
- /// ÉèÖÃÄÚÖñäÁ¿£º
- /// vec2 Asura_Time xֵΪ½øÈ뵱ǰ³¡¾°¿ªÊ¼µÄʱ¼ä£¬yֵΪÉÏÒ»Ö¡µÄʱ¼ä¼ä¸ô
- /// vec2 Asura_RenderTargetSize RTµÄ´óС£¬ÒÔÏñËØÎªµ¥Î»
- /// Texture Asura_MainTexture Ö÷ÎÆÀí
- ///
- void SetBuiltInUniforms();
+ ///
+ /// ÉèÖÃÄÚÖñäÁ¿£º
+ /// vec2 Asura_Time xֵΪ½øÈ뵱ǰ³¡¾°¿ªÊ¼µÄʱ¼ä£¬yֵΪÉÏÒ»Ö¡µÄʱ¼ä¼ä¸ô
+ /// vec2 Asura_RenderTargetSize RTµÄ´óС£¬ÒÔÏñËØÎªµ¥Î»
+ /// Texture Asura_MainTexture Ö÷ÎÆÀí
+ ///
+ void SetBuiltInUniforms();
- ///
- /// Ó³Éäuniforms IDµ½location¡£
- ///
- Map<int, int> mLocations;
+ ///
+ /// Ó³Éäuniforms IDµ½location¡£
+ ///
+ Map<int, int> mLocations;
- };
+ };
- class ShaderManager final : public Manager
- {
+ class ShaderManager final : public Manager
+ {
- };
+ };
- }
+ }
}
#endif \ No newline at end of file