Class ShaderDataBlock
Namespace: ValveResourceFormat.CompiledShader
Assembly: ValveResourceFormat.dll
Base class for shader data blocks.
csharp
public abstract class ShaderDataBlockInheritance
Derived
ConstantBufferDescription, FeaturesHeaderBlock, VfxCombo, VfxRule, VfxShaderFile, VfxTextureChannelProcessor, VfxVariableDescription, VfxVariableIndexArray, VsInputSignatureElement
Constructors
ShaderDataBlock(BinaryReader)
Initializes a new instance from a binary reader.
csharp
protected ShaderDataBlock(BinaryReader datareader)Parameters
datareader BinaryReader
ShaderDataBlock()
Initializes a new instance with default values.
csharp
protected ShaderDataBlock()Properties
Start
Gets the starting position in the stream.
csharp
protected long Start { get; }Property Value
Methods
ReadStringWithMaxLength(BinaryReader, int)
Reads a null-terminated string with a fixed maximum length.
csharp
public static string ReadStringWithMaxLength(BinaryReader datareader, int length)Parameters
datareader BinaryReader
length int

