public void ParseStructSets(List <ShaderStructModel> model)
 {
     if (m_jobjData != null)
     {
         JArray rootArray = m_jobjData ["struct_sets"] as JArray;
         for (int i = 0; i < rootArray.Count; i++)
         {
             JToken            val  = rootArray[i];
             ShaderStructModel iner = new ShaderStructModel();
             iner.name = (string)val["name"];
             iner.file = (string)val["file"];
             JToken desc = val ["variables"];
             foreach (var item in desc.Children <JToken>())
             {
                 JProperty pro = item as JProperty;
                 ShaderStructModel.StructInfo info = new ShaderStructModel.StructInfo();
                 info.name = pro.Name;
                 JArray infoArray = pro.Value as JArray;
                 for (int j = 0; j < infoArray.Count; j++)
                 {
                     info.info += (string)infoArray [j] + " ";
                 }
                 iner.variables.Add(info);
             }
             model.Add(iner);
         }
     }
 }
 public void ParseStructSets(List<ShaderStructModel> model)
 {
     if (m_jobjData != null) {
         JArray rootArray = m_jobjData ["struct_sets"] as JArray;
         for (int i = 0; i < rootArray.Count; i++) {
             JToken val = rootArray[i];
             ShaderStructModel iner = new ShaderStructModel ();
             iner.name = (string)val["name"];
             iner.file = (string)val["file"];
             JToken desc = val ["variables"];
             foreach (var item in desc.Children<JToken>()) {
                 JProperty pro = item as JProperty;
                 ShaderStructModel.StructInfo info = new ShaderStructModel.StructInfo ();
                 info.name = pro.Name;
                 JArray infoArray = pro.Value as JArray;
                 for (int j = 0; j < infoArray.Count; j++) {
                     info.info += (string)infoArray [j] + " ";
                 }
                 iner.variables.Add (info);
             }
             model.Add (iner);
         }
     }
 }