Interface IVfxEvalContext ​
Namespace: ValveResourceFormat.Serialization.VfxEval
Assembly: ValveResourceFormat.dll
Supplies the values a compiled dynamic expression reads.
public interface IVfxEvalContextProperties ​
Time ​
Gets the seconds the time function returns.
float Time { get; }Property Value ​
float
Methods ​
GetFeature(int) ​
Gets the value of a feature by its index in the features file.
int GetFeature(int index)Parameters ​
index int
Returns ​
int
GetFeature2(int) ​
Gets a value of the second feature table by index.
int GetFeature2(int index)Parameters ​
index int
Returns ​
int
GetFeature3(int) ​
Gets a value of the third feature table by index, or null to fail without that table.
int? GetFeature3(int index)Parameters ​
index int
Returns ​
int?
GetSystemValue(int) ​
Gets a system value by its static combo source index.
int GetSystemValue(int index)Parameters ​
index int
Returns ​
int
GetTextureAverageColor(StringToken) ​
Gets the average color of a texture parameter.
Vector4 GetTextureAverageColor(StringToken textureName)Parameters ​
textureName StringToken
Returns ​
GetTextureSize(StringToken) ​
Gets the width, height, depth and mip count of a texture parameter.
Vector4 GetTextureSize(StringToken textureName)Parameters ​
textureName StringToken
Returns ​
IsTextureParam(StringToken) ​
Gets whether a material parameter is a texture.
bool IsTextureParam(StringToken name)Parameters ​
name StringToken
Returns ​
bool
TryGetAttribute(StringToken, out Vector4) ​
Gets a render attribute, with scalars in every component.
bool TryGetAttribute(StringToken name, out Vector4 value)Parameters ​
name StringToken
value Vector4
Returns ​
bool
TryGetMaterialParam(StringToken, out Vector4) ​
Gets a scalar or vector material parameter, with scalars in every component.
bool TryGetMaterialParam(StringToken name, out Vector4 value)Parameters ​
name StringToken
value Vector4
Returns ​
bool
TryGetMaterialParamName(int, out StringToken) ​
Gets the name of a material parameter by its index in the features file.
bool TryGetMaterialParamName(int index, out StringToken name)Parameters ​
index int
name StringToken
Returns ​
bool

