Class NodeUtils
Inheritance
System.Object
NodeUtils
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Syntax
public static class NodeUtils
Methods
CollectNodesNodeFeedsInto(List<INode>, INode, NodeUtils.IncludeSelf)
Declaration
public static void CollectNodesNodeFeedsInto(List<INode> nodeList, INode node, NodeUtils.IncludeSelf includeSelf = NodeUtils.IncludeSelf.Include)
Parameters
ConvertConcreteSlotValueTypeToString(AbstractMaterialNode.OutputPrecision, ConcreteSlotValueType)
Declaration
public static string ConvertConcreteSlotValueTypeToString(AbstractMaterialNode.OutputPrecision p, ConcreteSlotValueType slotValue)
Parameters
Type |
Name |
Description |
AbstractMaterialNode.OutputPrecision |
p |
|
ConcreteSlotValueType |
slotValue |
|
Returns
Type |
Description |
System.String |
|
DepthFirstCollectNodesFromNode<T>(List<T>, T, NodeUtils.IncludeSelf, List<Int32>)
Declaration
public static void DepthFirstCollectNodesFromNode<T>(List<T> nodeList, T node, NodeUtils.IncludeSelf includeSelf = NodeUtils.IncludeSelf.Include, List<int> slotIds = null)where T : class, INode
Parameters
Type |
Name |
Description |
List<T> |
nodeList |
|
T |
node |
|
NodeUtils.IncludeSelf |
includeSelf |
|
List<System.Int32> |
slotIds |
|
Type Parameters
FloatToShaderValue(Single)
Declaration
public static string FloatToShaderValue(float value)
Parameters
Type |
Name |
Description |
System.Single |
value |
|
Returns
Type |
Description |
System.String |
|
GetAllEdges(INode)
Declaration
public static IEnumerable<IEdge> GetAllEdges(INode node)
Parameters
Type |
Name |
Description |
INode |
node |
|
Returns
Type |
Description |
IEnumerable<IEdge> |
|
GetEffectiveShaderStage(MaterialSlot, Boolean)
Declaration
public static ShaderStage GetEffectiveShaderStage(MaterialSlot initialSlot, bool goingBackwards)
Parameters
Type |
Name |
Description |
MaterialSlot |
initialSlot |
|
System.Boolean |
goingBackwards |
|
Returns
Type |
Description |
ShaderStage |
|
GetEffectiveShaderStageCapability(MaterialSlot, Boolean)
Declaration
public static ShaderStageCapability GetEffectiveShaderStageCapability(MaterialSlot initialSlot, bool goingBackwards)
Parameters
Type |
Name |
Description |
MaterialSlot |
initialSlot |
|
System.Boolean |
goingBackwards |
|
Returns
Type |
Description |
ShaderStageCapability |
|
GetHLSLSafeName(String)
Declaration
public static string GetHLSLSafeName(string input)
Parameters
Type |
Name |
Description |
System.String |
input |
|
Returns
Type |
Description |
System.String |
|
GetSlotDimension(ConcreteSlotValueType)
Declaration
public static string GetSlotDimension(ConcreteSlotValueType slotValue)
Parameters
Type |
Name |
Description |
ConcreteSlotValueType |
slotValue |
|
Returns
Type |
Description |
System.String |
|
SlotConfigurationExceptionIfBadConfiguration(INode, IEnumerable<Int32>, IEnumerable<Int32>)
Declaration
public static void SlotConfigurationExceptionIfBadConfiguration(INode node, IEnumerable<int> expectedInputSlots, IEnumerable<int> expectedOutputSlots)
Parameters
Type |
Name |
Description |
INode |
node |
|
IEnumerable<System.Int32> |
expectedInputSlots |
|
IEnumerable<System.Int32> |
expectedOutputSlots |
|