Engine apps manage every rendering resource themselves
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 12/100
- Tipo di issue
- Refactoring
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- rust
- Ambito
- computer-graphics
Direzione di ricerca
Start with the engine backends' Renderer and presentation target, the RenderContext they expose each frame, and Application::resize, then read the bloom example where bloom_half is sampled twice in one frame. Read PR #31 for the current per-sampler Texture and update_from pattern. This is a design decision about what the engine owns, so the work is agreeing on the ownership model with the maintainer before any code changes. Done means a decision is recorded and the chosen API is implemented consistently.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Apps built on engine own and manage nearly every rendering resource themselves. The engine backends own only the Renderer and the presentation target, and expose them through RenderContext each frame. Everything else is a field on the app struct and is handled by hand:
- offscreen
RenderTargets, which the app also has to resize inApplication::resize; - pipelines and models;
- the storage for sampling a render target as a texture. Reusing it across frames means holding one
Textureper place a target is sampled and callingupdate_fromon it each frame (PR #31). A target sampled twice in one frame, asbloom_halfis in the bloom example, needs two.
Multipass apps therefore carry a lot of bookkeeping that the engine could do, and resource handling is split inconsistently between engine-owned (presentation target) and app-owned (everything else).
Expected
Decide how much the engine owns, and make it consistent. One candidate for render-target textures: a private pool owned by each backend and reached through the context, so apps store nothing:
impl RenderContext<'_> {
/// A texture of the target's current pixels, in storage reused from earlier frames.
pub fn render_target_texture(&mut self, target: &RenderTarget) -> Texture { … }
}
let scene = Arc::new(
context
.render_target_texture(&self.scene_target)
.sampler(WrapMode::Clamp, FilterMode::Linear),
);
The pool would hand out any buffer of the right length that no live sampler still shares, so it grows to the peak number of simultaneously live snapshots. The same question applies to offscreen render targets (engine-owned, resized automatically) and possibly pipelines.
- Lingua principale
- Rust
- Stelle
- 1
- Fork
- 1
- Merge medio
- 6h 52m
- PR unite (30g)
- 13
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di costott/cpu_rasteriser
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
costott/cpu_rasteriser#63 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
costott/cpu_rasteriser#62 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
costott/cpu_rasteriser#60 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
costott/cpu_rasteriser#56 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
costott/cpu_rasteriser#55 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di costott/cpu_rasteriser
Issue simili
-
marketing
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
jeremeybingham/reso_client#69 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
backup-agents leaves out OpenCode global skillsForse già presa @yanpenalva l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
akitaonrails/ai-memory#2469 ·
I maintainer di solito rispondono entro 1 giorno
-
register_templates_directory fails when a directory name matches tpl_extensionForse già presa @mansur-akhmadi l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
sunng87/handlebars-rust#810 ·
I maintainer di solito rispondono entro 1 giorno