Table of Contents

Class ShaderDataBlock

Namespace
ValveResourceFormat.CompiledShader
Assembly
ValveResourceFormat.dll

Base class for shader data blocks.

public abstract class ShaderDataBlock

Inheritance

Derived

Inherited Members

Constructors

ShaderDataBlock(BinaryReader)

Initializes a new instance from a binary reader.

protected ShaderDataBlock(BinaryReader datareader)

Parameters

datareader BinaryReader

ShaderDataBlock()

Initializes a new instance with default values.

protected ShaderDataBlock()

Properties

Start

Gets the starting position in the stream.

protected long Start { get; }

Property Value

long

Methods

ReadStringWithMaxLength(BinaryReader, int)

Reads a null-terminated string with a fixed maximum length.

public static string ReadStringWithMaxLength(BinaryReader datareader, int length)

Parameters

datareader BinaryReader
length int

Returns

string