Synced
ShaderGraphDocument.Read
Section titled “ShaderGraphDocument.Read”
- Reads a named node value; absent values use the declared default, corrupt values never do.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Rendering.Shaders
Declaration
Section titled “Declaration”public static T Inno.Rendering.Shaders.ShaderGraphDocument.Read<T>(Inno.Core.Graphs.GraphNodeRecord node, string key, T defaultValue, Inno.Core.Serialization.SerializationRegistry serialization, Inno.Core.Serialization.SerializationContext context)Type parameters
Section titled “Type parameters”Type parameter T: Expected native serializable type.
Parameters
Section titled “Parameters”Parameter node: Neutral node record.
Parameter key: Stable property key.
Parameter defaultValue: Value used only when the property is absent.
Parameter serialization: The owner converter registry.
Parameter context: The complete owner reference context.
Returns
Section titled “Returns”The decoded value or explicit absent-property default.