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 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 which programs are present, indexed by the file's program slot. Slots match VcsProgramType before version 68, which removed the hull and domain shader slots.
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 ShaderFallback, string StaticComboName, int StaticComboValue)> Modes { get; }Property Value
List<(string Name, string ShaderFallback, string StaticComboName, int StaticComboValue)>
Version
Gets the shader source version. It increments whenever the source changes and is identical across all platforms and shader models.
public int Version { get; }Property Value
int

