Exemplo n.º 1
0
 /// <summary>
 /// Adds a composition to this mixin.
 /// </summary>
 /// <param name="name">The name.</param>
 /// <param name="shaderSource">The shader source.</param>
 public void AddComposition(string name, ShaderSource shaderSource)
 {
     Compositions[name] = shaderSource;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ShaderMixinDiscardException"/> class.
 /// </summary>
 /// <param name="source">The source.</param>
 public ShaderMixinDiscardException(ShaderSource source)
 {
     DiscardSource = source;
 }