private void handleLightTags(string key, CompletionParam data) { if (ShaderConst.m_dFuncInfo.ContainsKey(key)) { data.m_sdistext = ShaderConst.getLightingInfo(key)[0]; data.m_scomtext = ShaderConst.getLightingInfo(key)[0]; } }
private void handleInputTags(string key, CompletionParam data) { foreach (var item in ShaderConst.m_dInerDefaultStruct.Keys) { if (item.Equals(key)) { data.m_sdistext = key; data.m_scomtext = ShaderConst.getInputInfo(key); break; } } }
private void handleSubTags(string key, CompletionParam data) { if (ShaderConst.m_dlSubShaderTagsInfo.ContainsKey(key)) { data.m_sdistext = key; data.m_scomtext = key; List <string> desc = ShaderConst.getSubTagInfo(key); for (int i = 0; i < desc.Count; i++) { data.m_sdesc += desc[i] + "/"; } } }
private void handlePropertiesTags(string key, CompletionParam data) { foreach (var item in ShaderConst.m_dPropertiesInfo.Keys) { if (item.Equals(key)) { data.m_sdistext = key; data.m_scomtext = key; data.m_sdesc = ShaderConst.getPropertiesInfo(key); break; } } }