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