public override object Clone()
        {
            VertexShaderFieldList list = new VertexShaderFieldList();
            foreach (var item in this)
            {
                list.Add(item.Clone() as ShaderField);
            }

            return list;
        }
Beispiel #2
0
        public override object Clone()
        {
            VertexShaderFieldList list = new VertexShaderFieldList();

            foreach (var item in this)
            {
                list.Add(item.Clone() as ShaderField);
            }

            return(list);
        }
        internal static VertexShaderFieldList Parse(System.Xml.Linq.XElement xElement)
        {
            if (xElement.Name != typeof(VertexShaderFieldList).Name) { throw new Exception(); }

            var result = new VertexShaderFieldList();
            foreach (var item in xElement.Elements(typeof(ShaderField).Name))
            {
                result.Add(ShaderField.Parse(item));
            }

            return result;
        }
Beispiel #4
0
        internal static VertexShaderFieldList Parse(System.Xml.Linq.XElement xElement)
        {
            if (xElement.Name != typeof(VertexShaderFieldList).Name)
            {
                throw new Exception();
            }

            var result = new VertexShaderFieldList();

            foreach (var item in xElement.Elements(typeof(ShaderField).Name))
            {
                result.Add(ShaderField.Parse(item));
            }

            return(result);
        }