C# Class ValveResourceFormat.CompiledShader

Inheritance: IDisposable
Show file Open project: SteamDatabase/ValveResourceFormat Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Releases binary reader.

Read ( string filename ) : void

Opens and reads the given filename. The file is held open until the object is disposed.

Read ( string filename, Stream input ) : void

Reads the given Stream.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
ReadFeatures ( ) : void
ReadShader ( ) : void
ReadShaderChunk ( int offset ) : byte[]

Method Details

Dispose() public method

Releases binary reader.
public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Read() public method

Opens and reads the given filename. The file is held open until the object is disposed.
public Read ( string filename ) : void
filename string The file to open and read.
return void

Read() public method

Reads the given Stream.
public Read ( string filename, Stream input ) : void
filename string The filename .
input Stream The input to read from.
return void