Beispiel #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ShaderLoader"/> class.
        /// </summary>
        /// <param name="sourceManager">The source manager.</param>
        /// <exception cref="System.ArgumentNullException">sourceManager</exception>
        public ShaderLoader(ShaderSourceManager sourceManager)
        {
            if (sourceManager == null)
            {
                throw new ArgumentNullException("sourceManager");
            }

            SourceManager = sourceManager;
        }
        public ShaderDependencyVisitor(LoggerResult log, ShaderSourceManager sourceManager)
            : base(false, true)
        {
            if (log == null)
            {
                throw new ArgumentNullException("log");
            }
            if (sourceManager == null)
            {
                throw new ArgumentNullException("sourceManager");
            }

            this.log           = log;
            this.sourceManager = sourceManager;
        }