Table of Contents

Class FeaturesHeaderBlock

Namespace
ValveResourceFormat.CompiledShader
Assembly
ValveResourceFormat.dll

Header block for shader features files.

public class FeaturesHeaderBlock : ShaderDataBlock

Inheritance

Inherited Members

Constructors

FeaturesHeaderBlock(KVObject)

Initializes a new instance from ValveResourceFormat.Serialization.KeyValues.KVObject data.

public FeaturesHeaderBlock(KVObject data)

Parameters

data KVObject

FeaturesHeaderBlock(BinaryReader, int)

Initializes a new instance from a binary reader.

public FeaturesHeaderBlock(BinaryReader datareader, int programTypesCount)

Parameters

datareader BinaryReader
programTypesCount int

Properties

AvailablePrograms

Gets the array of available program types.

public bool[] AvailablePrograms { get; }

Property Value

bool[]

DevShader

Gets whether this is a development shader.

public bool DevShader { get; }

Property Value

bool

FileDescription

Gets the file description.

public string FileDescription { get; }

Property Value

string

Modes

Gets the list of shader modes.

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.

public int Version { get; }

Property Value

int