/// <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; }
/// <summary> /// Initializes a new instance of the <see cref="ShaderMixinDiscardException"/> class. /// </summary> /// <param name="source">The source.</param> public ShaderMixinDiscardException(ShaderSource source) { DiscardSource = source; }