summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/cc.ShaderCache.lua
blob: 0eeb110f519fbd53ae5498a81f3bb79e2395eb86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

---@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