summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/library/cc.ShaderCache.lua
diff options
context:
space:
mode:
Diffstat (limited to 'meta/3rd/Cocos4.0/library/cc.ShaderCache.lua')
-rw-r--r--meta/3rd/Cocos4.0/library/cc.ShaderCache.lua30
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/3rd/Cocos4.0/library/cc.ShaderCache.lua b/meta/3rd/Cocos4.0/library/cc.ShaderCache.lua
new file mode 100644
index 00000000..e27a855b
--- /dev/null
+++ b/meta/3rd/Cocos4.0/library/cc.ShaderCache.lua
@@ -0,0 +1,30 @@
+---@meta
+
+---@class cc.ShaderCache :cc.Ref
+local ShaderCache={ }
+cc.ShaderCache=ShaderCache
+
+
+
+
+---* Remove all unused shaders.
+---@return cc.backend.ShaderCache
+function ShaderCache:removeUnusedShader () end
+---* purges the cache. It releases the retained instance.
+---@return cc.backend.ShaderCache
+function ShaderCache:destroyInstance () end
+---* Create a vertex shader module and add it to cache.<br>
+---* If it is created before, then just return the cached shader module.<br>
+---* param shaderSource The source code of the shader.
+---@param shaderSource string
+---@return cc.backend.ShaderModule
+function ShaderCache:newVertexShaderModule (shaderSource) end
+---* Create a fragment shader module.<br>
+---* If it is created before, then just return the cached shader module.<br>
+---* param shaderSource The source code of the shader.
+---@param shaderSource string
+---@return cc.backend.ShaderModule
+function ShaderCache:newFragmentShaderModule (shaderSource) end
+---* returns the shared instance
+---@return cc.backend.ShaderCache
+function ShaderCache:getInstance () end \ No newline at end of file