예제 #1
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;
 }
예제 #2
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;
 }