Class FeaturesHeaderBlock
Namespace: ValveResourceFormat.CompiledShader
Assembly: ValveResourceFormat.dll
Header block for shader features files.
csharp
public class FeaturesHeaderBlock : ShaderDataBlockInheritance
object ← ShaderDataBlock ← FeaturesHeaderBlock
Inherited Members
ShaderDataBlock.Start, ShaderDataBlock.ReadStringWithMaxLength(BinaryReader, int)
Constructors
FeaturesHeaderBlock(KVObject)
Initializes a new instance from data.
csharp
public FeaturesHeaderBlock(KVObject data)Parameters
data KVObject
FeaturesHeaderBlock(BinaryReader, int)
Initializes a new instance from a binary reader.
csharp
public FeaturesHeaderBlock(BinaryReader datareader, int programTypesCount)Parameters
datareader BinaryReader
programTypesCount int
Properties
AvailablePrograms
Gets the array of available program types.
csharp
public bool[] AvailablePrograms { get; }Property Value
bool[]
DevShader
Gets whether this is a development shader.
csharp
public bool DevShader { get; }Property Value
FileDescription
Gets the file description.
csharp
public string FileDescription { get; }Property Value
Modes
Gets the list of shader modes.
csharp
public List<(string Name, string Shader, string StaticConfig, int Value)> Modes { get; }Property Value
List<(string Name, string Shader, string StaticConfig, int Value)>
Version
Gets the features file version.
csharp
public int Version { get; }
