diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-07-05 20:51:43 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-07-05 20:51:43 +0800 |
commit | 8fefb8f3e100976235dc83d6ae3785952d11c710 (patch) | |
tree | 459117e6cecc70824273c4d32285cb6eec468098 /meta/3rd/Cocos4.0/library/ccb.Program.lua | |
parent | b6c18d05410fd4ca209f9c34e0992caf40cf3701 (diff) | |
download | lua-language-server-8fefb8f3e100976235dc83d6ae3785952d11c710.zip |
cleanup
Diffstat (limited to 'meta/3rd/Cocos4.0/library/ccb.Program.lua')
-rw-r--r-- | meta/3rd/Cocos4.0/library/ccb.Program.lua | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/meta/3rd/Cocos4.0/library/ccb.Program.lua b/meta/3rd/Cocos4.0/library/ccb.Program.lua new file mode 100644 index 00000000..01759b99 --- /dev/null +++ b/meta/3rd/Cocos4.0/library/ccb.Program.lua @@ -0,0 +1,54 @@ +---@meta + +---@class ccb.Program :cc.Ref +local Program={ } +ccb.Program=Program + + + + +---* Get maximum vertex location.<br> +---* return Maximum vertex locaiton. +---@return int +function Program:getMaxVertexLocation () end +---* Get maximum fragment location.<br> +---* return Maximum fragment location. +---@return int +function Program:getMaxFragmentLocation () end +---* Get fragment shader.<br> +---* Fragment shader. +---@return string +function Program:getFragmentShader () end +---* Get uniform buffer size in bytes that can hold all the uniforms.<br> +---* param stage Specifies the shader stage. The symbolic constant can be either VERTEX or FRAGMENT.<br> +---* return The uniform buffer size in bytes. +---@param stage int +---@return unsigned_int +function Program:getUniformBufferSize (stage) end +---@overload fun(string0:int):self +---@overload fun(string:string):self +---@param uniform string +---@return cc.backend.UniformLocation +function Program:getUniformLocation (uniform) end +---* Get engine built-in program type.<br> +---* return The built-in program type. +---@return int +function Program:getProgramType () end +---* Get active vertex attributes.<br> +---* return Active vertex attributes. key is active attribute name, Value is corresponding attribute info. +---@return map_table +function Program:getActiveAttributes () end +---@overload fun(string0:int):self +---@overload fun(string:string):self +---@param name string +---@return int +function Program:getAttributeLocation (name) end +---* Get vertex shader.<br> +---* return Vertex shader. +---@return string +function Program:getVertexShader () end +---* Get engine built-in program.<br> +---* param type Specifies the built-in program type. +---@param type int +---@return cc.backend.Program +function Program:getBuiltinProgram (type) end
\ No newline at end of file |