summaryrefslogtreecommitdiff
path: root/Runtime/Graphics/GeneratedTextures.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-08-14 22:50:43 +0800
committerchai <chaifix@163.com>2019-08-14 22:50:43 +0800
commit15740faf9fe9fe4be08965098bbf2947e096aeeb (patch)
treea730ec236656cc8cab5b13f088adfaed6bb218fb /Runtime/Graphics/GeneratedTextures.h
+Unity Runtime codeHEADmaster
Diffstat (limited to 'Runtime/Graphics/GeneratedTextures.h')
-rw-r--r--Runtime/Graphics/GeneratedTextures.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/Runtime/Graphics/GeneratedTextures.h b/Runtime/Graphics/GeneratedTextures.h
new file mode 100644
index 0000000..bc474c5
--- /dev/null
+++ b/Runtime/Graphics/GeneratedTextures.h
@@ -0,0 +1,28 @@
+#ifndef GENERATEDTEXTURES_H
+#define GENERATEDTEXTURES_H
+
+#include "Runtime/GfxDevice/GfxDeviceTypes.h"
+class Texture;
+class Texture2D;
+class Texture3D;
+
+namespace builtintex {
+
+void GenerateBuiltinTextures();
+void ReinitBuiltinTextures();
+
+Texture2D* GetWhiteTexture ();
+Texture2D* GetBlackTexture ();
+Texture3D* GetDitherMaskTexture();
+Texture* GetAttenuationTexture ();
+Texture* GetHaloTexture ();
+
+// Get the default texture for a texture dimension
+TextureID GetDefaultTexture( TextureDimension texDim );
+
+TextureID GetBlackTextureID ();
+
+} // namespace
+
+
+#endif