Render features
RenderFeature is responsible for drawing a given type of RenderObject.
Render phases
Render features have several phases.
Collect
collect phase determines what needs to be processed and rendered. It’s usually driven by the graphics compositor. The collect phase:
- -
Extract
extract phase copies data from game states of previously collected objects to short-lived render-specific structures. It’s usually driven by the RenderSystem and RenderFeatures. Prepare.Note
prepare and draw phases are finished. Example tasks: - -
Prepare
prepare phase prepares GPU resources and performs heavy computations. This is usually driven by the RenderSystem and RenderFeatures. Example tasks: - -
Draw
draw phase fills the GPU command list. Example tasks: - -
Example
collect phase, used during the draw phase:Pipeline processors
Pipeline processors are classes called when creating the pipeline state. This lets you do things such as enable alpha blending or wireframe rendering in a specific render stage. Xenko includes several predefined pipeline processors. You can also create your own.See also
- Rendering pipeline
- Render stages
- Effects and shaders
- Graphics compositor
