Class VfxShaderAttribute
Namespace: ValveResourceFormat.CompiledShader
Assembly: ValveResourceFormat.dll
Shader attribute with name, type, and value or expression.
public class VfxShaderAttributeInheritance
object ← VfxShaderAttribute
Constructors
VfxShaderAttribute(KVObject)
Initializes a new instance from KVObject data.
public VfxShaderAttribute(KVObject data)Parameters
data KVObject
VfxShaderAttribute(BinaryReader)
Initializes a new instance from a binary reader.
public VfxShaderAttribute(BinaryReader datareader)Parameters
datareader BinaryReader
Properties
ConstValue
Gets the constant value.
public object? ConstValue { get; }Property Value
object?
DynExpression
Gets the dynamic expression bytecode.
public byte[]? DynExpression { get; }Property Value
byte[]?
Murmur32
Gets the 32-bit MurmurHash2 of the name.
public uint Murmur32 { get; }Property Value
uint
Name
Gets the attribute name.
public string Name { get; }Property Value
string
VariableBinding
Gets the index of the variable this attribute is bound to, or -1 when it is not bound to one.
public short VariableBinding { get; }Property Value
short
VfxType
Gets the variable type.
public VfxVariableType VfxType { get; }Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()Returns
string
A string that represents the current object.
Remarks
Formats the name, hash, type, variable binding, and dynamic expression or constant value.

