Class VfxShaderAttribute
- Namespace
- ValveResourceFormat.CompiledShader
- Assembly
- ValveResourceFormat.dll
Shader attribute with name, type, and value or expression.
public class VfxShaderAttribute
Inheritance
Inherited Members
Constructors
VfxShaderAttribute(KVObject)
Initializes a new instance from ValveResourceFormat.Serialization.KeyValues.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
DynExpLen
Gets the dynamic expression length.
public int DynExpLen { get; }
Property Value
DynExpression
Gets the dynamic expression bytecode.
public byte[]? DynExpression { get; }
Property Value
- byte[]?
LinkedParameterIndex
Gets the linked parameter index.
public short LinkedParameterIndex { get; }
Property Value
Murmur32
Gets the Murmur2 hash of the name.
public uint Murmur32 { get; }
Property Value
Name0
Gets the attribute name.
public string Name0 { get; }
Property Value
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
Returns a formatted string with the attribute name, hash, type, parameter index, and either the dynamic expression or constant value.