Class FeaturesHeaderBlock
Namespace: ValveResourceFormat.CompiledShader
Assembly: ValveResourceFormat.dll
Header block for shader features files.
public class FeaturesHeaderBlock : ShaderDataBlockInheritance
object ← ShaderDataBlock ← FeaturesHeaderBlock
Inherited Members
ShaderDataBlock.Start, ShaderDataBlock.ReadStringWithMaxLength(BinaryReader, int)
Constructors
FeaturesHeaderBlock(KVObject)
Initializes a new instance from 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 which program types are present, indexed by program type.
public bool[] AvailablePrograms { get; }Property Value
bool[]
DevShader
Gets whether this is a development shader.
public bool DevShader { get; }Property Value
FileDescription
Gets the file description.
public string FileDescription { get; }Property Value
Modes
Gets the list of shader modes.
public List<(string Name, string ShaderFallback, string StaticComboName, int StaticComboValue)> Modes { get; }Property Value
List<(string Name, string ShaderFallback, string StaticComboName, int StaticComboValue)>
Version
Gets the version of the shader source this file was compiled from. It increments whenever the source changes, and is identical across all platforms and shader models the shader was compiled for.
public int Version { get; }
