Shader.WriteOutput¶
Name | Mandatory | Description | Default | Type |
---|---|---|---|---|
⬅️ Input |
The value to write to the shader output specified. | Any |
||
Output ➡️ |
The shard outputs none, but the value is passed to the next stage or render target. | None |
||
Name |
No | The name of the output to write to. | `` | String |
This shard writes the input value to the shader output or one of the outputs of the render pass (specified in the Name parameter).
Details¶
This can be used in the Shader
parameter of GFX.Feature
or the EntryPoint
parameter of GFX.EffectPass
.
The functions differently when used in the Vertex stage and the Fragment stage of the entry point. - When used in the Vertex stage, will write or create a new shader output and supply it to the fragment stage. - When used in the Fragment stage, it will write the value supplied as input to the shard, to one of the outputs attached to the render pass.