/// <summary> /// Sets the uniforms in a compiled shader. /// </summary> /// <param name="shader">Target shader</param> public void SetUniforms(CompiledShader shader) { foreach (var uniform in this.uniforms.automaticUniforms) { uniform.Apply(shader, target); } }
internal Uniform(CompiledShader cs, int location, string name, ActiveUniformType type, int size) { this.shader = cs; this.Location = location; this.Name = name; this.Type = type; this.Size = size; }