/// <summary> /// Load the shader source from an embedded resource /// </summary> /// <param name="resourcePath"> /// A <see cref="String"/> that specify the embedded resource path. /// </param> /// <exception cref="ArgumentNullException"> /// Exception thrown if <paramref name="resourcePath"/> is null. /// </exception> /// <exception cref="ArgumentException"> /// Exception thrown if no embedded resource can be found. /// </exception> public void LoadSource(string resourcePath) { _SourceStrings = ShaderObject.LoadSourceLines(resourcePath); }
/// <summary> /// Load the shader source from a stream. /// </summary> /// <param name="sourceStream"> /// A <see cref="Stream"/>that holds the source lines. /// </param> /// <exception cref="ArgumentNullException"> /// Exception thrown in the case <paramref name="sourceStream"/> is null. /// </exception> public void LoadSource(Stream sourceStream) { _SourceStrings = ShaderObject.LoadSourceLines(sourceStream); }