Example #1
0
        public Pipeline(IGL owner, object opaque, bool available, VertexLayout vertexLayout, IEnumerable <UniformInfo> uniforms, string memo)
        {
            Memo         = memo;
            Owner        = owner;
            Opaque       = opaque;
            VertexLayout = vertexLayout;
            Available    = available;

            //create the uniforms from the info list we got
            if (!Available)
            {
                return;
            }

            UniformsDictionary = new SpecialWorkingDictionary(this);
            foreach (var ui in uniforms)
            {
                UniformsDictionary[ui.Name] = new PipelineUniform(this);
            }

            foreach (var ui in uniforms)
            {
                UniformsDictionary[ui.Name].AddUniformInfo(ui);
            }
        }
Example #2
0
        public Pipeline(IGL owner, IntPtr id, bool available, VertexLayout vertexLayout, IEnumerable <UniformInfo> uniforms)
        {
            Owner        = owner;
            Id           = id;
            VertexLayout = vertexLayout;
            Available    = available;

            //create the uniforms from the info list we got
            UniformsDictionary = new SpecialWorkingDictionary(this);
            foreach (var ui in uniforms)
            {
                UniformsDictionary[ui.Name] = new PipelineUniform(this, ui);
            }
        }