Skip to content
This repository was archived by the owner on Aug 22, 2020. It is now read-only.
This repository was archived by the owner on Aug 22, 2020. It is now read-only.

Make render target more consumable.  #49

@StarArawn

Description

@StarArawn

Mostly we use the RenderTarget stuff for probes and it's use is very internal to the engine, however I can see the use case for needing to expose it more. A possible API for that might be:

let render_target = RenderTarget:new(.....)
pipeline_manager.set_target(render_target);
app.render_now();
pipeline_manager.reset_target();

Or in the case of custom rendering:

let mut render_schedule =
    Schedule::builder()
        .add_system(crate::systems::MySystem::create())
        .flush()
        .add_thread_local_fn(harmony::graphics::systems::render::create())
        .build();

let render_target = RenderTarget:new(....)
pipeline_manager.set_target(render_target);
render_schedule.execute(...);
pipeline_manager.reset_target();

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions