Render features

    Render features have several phases.

    The collect phase determines what needs to be processed and rendered. It's usually driven by the graphics compositor.

    The collect phase:

    • creates render views, and updating them with the most recent data such as view and projection matrices
    • creates and setting up render stages
    • performes visibility culling and sorting

    Extract

    The extract phase copies data from game states of previously collected objects to short-lived render-specific structures. It's usually driven by the and RenderFeatures.

    Note

    Currently, Xenko doesn't parallelize game updates and scripts, so they won't be resumed until the prepare and draw phases are finished.

    Example tasks:

    • copying object matrices

    The prepare phase prepares GPU resources and performs heavy computations. This is usually driven by the and RenderFeatures.

    Example tasks:

    • computing lighting data and structures
    • filling constant buffers and resource tables

    Draw

    Example tasks:

    • setting up render textures
    • drawing combinations of render stage with render view.

    A typical example of views and stages created during collect phase, used during the draw phase:

    Pipeline processors

    Pipeline processors are classes called when creating the . This lets you do things such as enable alpha blending or wireframe rendering in a specific render stage.

    See also