Class PostProcessingNode
Represents the post-processing node inside of a Graph.
Inherited Members
Namespace: Evergine.Framework.Graphics
Assembly: Evergine.Framework.dll
Syntax
public class PostProcessingNode : IdentifiableObject
  Constructors
PostProcessingNode()
Initializes a new instance of the PostProcessingNode class.
Declaration
public PostProcessingNode()
  PostProcessingNode(Effect, string)
Initializes a new instance of the PostProcessingNode class.
Declaration
public PostProcessingNode(Effect effect, string name = null)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Effect | effect | The compute effect.  | 
      
| string | name | The node name.  | 
      
PostProcessingNode(string)
Initializes a new instance of the PostProcessingNode class.
Declaration
public PostProcessingNode(string name)
  Parameters
| Type | Name | Description | 
|---|---|---|
| string | name | The node name.  | 
      
Properties
ComputeTask
Gets the compute task. (Only compute effect are allow as a node).
Declaration
public ComputeTask ComputeTask { get; }
  Property Value
| Type | Description | 
|---|---|
| ComputeTask | 
EffectID
Gets or sets Effect ID.
Declaration
[EvergineMember(2)]
public Guid EffectID { get; set; }
  Property Value
| Type | Description | 
|---|---|
| Guid | 
Graph
Gets or sets the Graph owner.
Declaration
public PostProcessingGraphDescription Graph { get; set; }
  Property Value
| Type | Description | 
|---|---|
| PostProcessingGraphDescription | 
Inputs
Gets or sets the input ports.
Declaration
[EvergineMember]
public List<PostProcessingInputNodePort> Inputs { get; protected set; }
  Property Value
| Type | Description | 
|---|---|
| List<PostProcessingInputNodePort> | 
Name
Gets or sets the node name.
Declaration
[EvergineMember(0)]
public string Name { get; set; }
  Property Value
| Type | Description | 
|---|---|
| string | 
Outputs
Gets or sets the output ports.
Declaration
[EvergineMember]
public List<PostProcessingOutputNodePort> Outputs { get; protected set; }
  Property Value
| Type | Description | 
|---|---|
| List<PostProcessingOutputNodePort> | 
Position
Gets or sets the node position in the graph panel.
Declaration
[EvergineMember(1)]
public Vector2 Position { get; set; }
  Property Value
| Type | Description | 
|---|---|
| Vector2 | 
ThreadGroupDivisorX
Gets or sets the ThreadGroups divisor for compute task. Ej. Dispatch(imageWidth/divisorX, ..., ...).
Declaration
[EvergineMember]
public int ThreadGroupDivisorX { get; set; }
  Property Value
| Type | Description | 
|---|---|
| int | 
ThreadGroupDivisorY
Gets or sets the ThreadGroups divisor for compute task. Ej. Dispatch(..., imageHeight/divisorY, ...).
Declaration
[EvergineMember]
public int ThreadGroupDivisorY { get; set; }
  Property Value
| Type | Description | 
|---|---|
| int | 
ThreadGroupDivisorZ
Gets or sets the ThreadGroups divisor for compute task. Ej. Dispatch(..., ..., 1/divisorZ).
Declaration
[EvergineMember]
public int ThreadGroupDivisorZ { get; set; }
  Property Value
| Type | Description | 
|---|---|
| int | 
Methods
AddInputPort(PostProcessingInputNodePort)
Add new input port to node.
Declaration
public PostProcessingNode AddInputPort(PostProcessingInputNodePort inputPort)
  Parameters
| Type | Name | Description | 
|---|---|---|
| PostProcessingInputNodePort | inputPort | input Port.  | 
      
Returns
| Type | Description | 
|---|---|
| PostProcessingNode | The post-processing node (fluent syntax).  | 
      
AddOutputPort(PostProcessingOutputNodePort)
Add new output port to node.
Declaration
public PostProcessingNode AddOutputPort(PostProcessingOutputNodePort outputPort)
  Parameters
| Type | Name | Description | 
|---|---|---|
| PostProcessingOutputNodePort | outputPort | Output port.  | 
      
Returns
| Type | Description | 
|---|---|
| PostProcessingNode | The post-processing node (fluent syntax).  | 
      
GetInputPortByID(Guid)
Gets the input port by id.
Declaration
public PostProcessingInputNodePort GetInputPortByID(Guid portId)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Guid | portId | the port id.  | 
      
Returns
| Type | Description | 
|---|---|
| PostProcessingInputNodePort | Found input port or null.  | 
      
GetInputPortByName(string)
Get input port by name.
Declaration
public PostProcessingInputNodePort GetInputPortByName(string name)
  Parameters
| Type | Name | Description | 
|---|---|---|
| string | name | the port name.  | 
      
Returns
| Type | Description | 
|---|---|
| PostProcessingInputNodePort | Found port or null.  | 
      
GetOutputPortByID(Guid)
Gets the output port by id.
Declaration
public PostProcessingOutputNodePort GetOutputPortByID(Guid portId)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Guid | portId | the port id.  | 
      
Returns
| Type | Description | 
|---|---|
| PostProcessingOutputNodePort | Found input port or null.  | 
      
GetOutputPortByName(string)
Get output port by name.
Declaration
public PostProcessingOutputNodePort GetOutputPortByName(string name)
  Parameters
| Type | Name | Description | 
|---|---|---|
| string | name | the port name.  | 
      
Returns
| Type | Description | 
|---|---|
| PostProcessingOutputNodePort | Found port or null.  | 
      
GetPortByID(Guid)
Gets port by a port id.
Declaration
public PostProcessingNodePort GetPortByID(Guid portId)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Guid | portId | The port id.  | 
      
Returns
| Type | Description | 
|---|---|
| PostProcessingNodePort | The port.  | 
      
GetPortByName(string)
Gets the port input or output by name.
Declaration
public PostProcessingNodePort GetPortByName(string name)
  Parameters
| Type | Name | Description | 
|---|---|---|
| string | name | The port name.  | 
      
Returns
| Type | Description | 
|---|---|
| PostProcessingNodePort | Found input, output port or null.  | 
      
IntegrityNodeCheck(PostProcessingGraphDescription)
Check that all references has been setted.
Declaration
public void IntegrityNodeCheck(PostProcessingGraphDescription graph)
  Parameters
| Type | Name | Description | 
|---|---|---|
| PostProcessingGraphDescription | graph | Post-processing graph.  |