Пример #1
0
        /// <summary>
        /// Creates a new instance of the shader cache.
        /// </summary>
        /// <param name="context">GPU context that the shader cache belongs to</param>
        public ShaderCache(GpuContext context)
        {
            _context = context;

            _cache = new ShaderMap <Shader>();

            _dumper = new ShaderDumper();

            Configuration = new ShaderCacheConfiguration();
        }