private static T[] GetArray <T>(ShaderParameterCollection parameters, string name) where T : struct
 {
     T[] result;
     if (parameters.TryGet(name, out result))
     {
         return(result);
     }
     else
     {
         return(null);
     }
 }
        private static ContentRef <Texture> GetTexture(ShaderParameterCollection parameters, string name)
        {
            ContentRef <Texture> result;

            if (parameters.TryGet(name, out result))
            {
                return(result);
            }
            else
            {
                return(null);
            }
        }
        private static T GetValue <T>(ShaderParameterCollection parameters, string name) where T : struct
        {
            T result;

            if (parameters.TryGet(name, out result))
            {
                return(result);
            }
            else
            {
                return(default(T));
            }
        }