Class VfxShaderAttribute
Namespace: ValveResourceFormat.CompiledShader
Assembly: ValveResourceFormat.dll
Shader attribute with name, type, and value or expression.
csharp
public class VfxShaderAttributeInheritance
Constructors
VfxShaderAttribute(KVObject)
Initializes a new instance from data.
csharp
public VfxShaderAttribute(KVObject data)Parameters
data KVObject
VfxShaderAttribute(BinaryReader)
Initializes a new instance from a binary reader.
csharp
public VfxShaderAttribute(BinaryReader datareader)Parameters
datareader BinaryReader
Properties
ConstValue
Gets the constant value.
csharp
public object? ConstValue { get; }Property Value
DynExpLen
Gets the dynamic expression length.
csharp
public int DynExpLen { get; }Property Value
DynExpression
Gets the dynamic expression bytecode.
csharp
public byte[]? DynExpression { get; }Property Value
byte[]?
LinkedParameterIndex
Gets the linked parameter index.
csharp
public short LinkedParameterIndex { get; }Property Value
Murmur32
Gets the Murmur2 hash of the name.
csharp
public uint Murmur32 { get; }Property Value
Name0
Gets the attribute name.
csharp
public string Name0 { get; }Property Value
VfxType
Gets the variable type.
csharp
public VfxVariableType VfxType { get; }Property Value
Methods
ToString()
Returns a string that represents the current object.
csharp
public override string ToString()Returns
A string that represents the current object.
Remarks
Returns a formatted string with the attribute name, hash, type, parameter index, and either the dynamic expression or constant value.

