Skip to content

Initial MSAA support.#4

Draft
DrogonMar wants to merge 1 commit intomainfrom
msaa
Draft

Initial MSAA support.#4
DrogonMar wants to merge 1 commit intomainfrom
msaa

Conversation

@DrogonMar
Copy link
Contributor

@DrogonMar DrogonMar commented Jan 9, 2026

Addresses Task Renderer: MSAA support

Parent pass now contain a primary render target with MSAA enabled that child passes render to.
The current way the parent clears the primary render target feels a bit jank but no idea of alternatives currently.

There's no support right now to select the level of MSAA to use, I think disabling MSAA isn't really necessary as the performance benefit probably isn't major and you end up making rounded corners look awful.

General state of flow:

flowchart TD
    Start([Start Parent Pass]) --> Clear[1. Clear MSAA RT]
    
    Clear --> Children[2. For Each Child Pass:<br/>Render to MSAA RT]
    
    Children --> Resolve[3. MSAA Resolve Pass]
    
    Resolve --> ResolvedUI[Resolved UI RT]
    
    ColorInputOutput[ColorInputOutput] --> Composite
    ResolvedUI --> Composite[4. Composite Pass<br/>ColorInputOutput + UI]
    
    Composite --> Output([Parent Pass ColorInputOutput])
    
    style Clear fill:#fdd,stroke:#333
    style Children fill:#ffd,stroke:#333
    style Resolve fill:#ddf,stroke:#333
    style Composite fill:#dfd,stroke:#333
    style Output fill:#bfb,stroke:#333
Loading

Signed-off-by: Reece Hagan <drogonmar@tuyuji.com>
@DrogonMar DrogonMar linked an issue Jan 9, 2026 that may be closed by this pull request
@DrogonMar DrogonMar added the enhancement New feature or request label Jan 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Renderer: MSAA support

1 participant