public Shader(Graphics graphics, ShaderSource source) { Implementation = graphics.CreateShader(source); Uniforms = new ReadOnlyDictionary <string, ShaderUniform>(Implementation.Uniforms); Attributes = new ReadOnlyDictionary <string, ShaderAttribute>(Implementation.Attributes); }
public Shader(ShaderSource source) : this(App.Graphics, source) { }
/// <summary> /// Creates a new Shader from the Shader Source /// </summary> protected internal abstract Shader.Platform CreateShader(ShaderSource source);