Step to apply post-processing filter to the rendered image. More...
#include <secondstage.h>
Inheritance diagram for PostProcessingStep:
Collaboration diagram for PostProcessingStep:Public Member Functions | |
| PostProcessingStep (u32 shader_id, const std::vector< u8 > &texture_map) | |
| Construct a new PostProcessingStep object. | |
| void | setRenderSource (RenderSource *source) override |
| Assigns render source to this step. | |
| void | setRenderTarget (RenderTarget *target) override |
| Assigned render target to this step. | |
| void | reset (PipelineContext &context) override |
| void | run (PipelineContext &context) override |
| Runs the step. | |
| void | setBilinearFilter (u8 index, bool value) |
| Configure bilinear filtering for a specific texture layer. | |
Public Member Functions inherited from RenderPipelineObject | |
| virtual | ~RenderPipelineObject ()=default |
Private Member Functions | |
| void | configureMaterial () |
Private Attributes | |
| u32 | shader_id |
| std::vector< u8 > | texture_map |
| RenderSource * | source { nullptr } |
| RenderTarget * | target { nullptr } |
| video::SMaterial | material |
Step to apply post-processing filter to the rendered image.
| PostProcessingStep::PostProcessingStep | ( | u32 | shader_id, |
| const std::vector< u8 > & | texture_map ) |
Construct a new PostProcessingStep object.
| shader_id | ID of the shader in IShaderSource |
| texture_map | Map of textures to be chosen from the render source |
References configureMaterial(), and texture_map.
Here is the call graph for this function:
|
private |
References material, and texture_map.
Referenced by PostProcessingStep().
Here is the caller graph for this function:
|
overridevirtual |
Reimplemented from RenderPipelineObject.
|
overridevirtual |
Runs the step.
This method is invoked by the pipeline.
Implements RenderStep.
References RenderTarget::activate(), PipelineContext::client, PipelineContext::device, IShaderSource::getShaderInfo(), Client::getShaderSource(), RenderSource::getTexture(), material, ShaderInfo::material, shader_id, source, target, and texture_map.
Here is the call graph for this function:| void PostProcessingStep::setBilinearFilter | ( | u8 | index, |
| bool | value ) |
Configure bilinear filtering for a specific texture layer.
| index | Index of the texture layer |
| value | true to enable the bilinear filter, false to disable |
References material.
|
overridevirtual |
Assigns render source to this step.
| source | source of rendering information |
Implements RenderStep.
References source.
Referenced by populateInterlacedPipeline().
Here is the caller graph for this function:
|
overridevirtual |
Assigned render target to this step.
| target | render target to send output to. |
Implements RenderStep.
References target.
|
private |
Referenced by configureMaterial(), run(), and setBilinearFilter().
|
private |
Referenced by run().
|
private |
Referenced by run(), and setRenderSource().
|
private |
Referenced by run(), and setRenderTarget().
|
private |
Referenced by PostProcessingStep(), configureMaterial(), and run().