Duality.Resources.AbstractShader.LoadSource C# (CSharp) Method

LoadSource() public method

Loads new shader source code from the specified System.IO.Stream.
public LoadSource ( Stream stream ) : void
stream Stream The to read the source code from.
return void
        public void LoadSource(Stream stream)
        {
            StreamReader reader = new StreamReader(stream);

            this.compiled = false;
            this.sourcePath = null;
            this.source = reader.ReadToEnd();
        }

Same methods

AbstractShader::LoadSource ( string filePath = null ) : void