Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Razix Graphics Context and RHI flow inconsistencies #391

Open
Pikachuxxxx opened this issue Dec 22, 2024 · 0 comments
Open

Razix Graphics Context and RHI flow inconsistencies #391

Pikachuxxxx opened this issue Dec 22, 2024 · 0 comments
Labels
Architecture Issues related to API/ Engine design and architecture.

Comments

@Pikachuxxxx
Copy link
Owner

Razix Gfx StartUp and Shutdown Flow

Graphics Context Flow

  1. StartUp Phase

    • Gfx::RZResourceManager::Get().StartUp();
    • Swapchain Textures Initialization
    • Context -> Create + Init
      • PostGraphicsContextInit()
      • Initialize:
        • Sampler Presets
        • Default Material
  2. Render Phase

    • RHI::Create
    • Render Frame
  3. Shutdown Phase

    • RHI::Release
    • Destroy Swapchain Back Buffers
    • GraphicsContext::Release
      • PreGraphicsContextDestroy
        • Destroy:
          • Sampler Presets
          • Default Material
        • ShaderLibrary Shutdown
    • Gfx::RZResourceManager::Get().ShutDown();
    • s_Context->Destroy()
      • Destroy:
        • Swapchain
        • Device
        • Instance/Context

Issues

[Inconsistency!] Swapchain release happens in RHI but creation is done in GraphicsContext::Init()
[Inconsistency!] ShaderLibrary startup happens in RZEngine::PostGraphicsIgnition but clean up happens in GraphicsContext::Release

@Pikachuxxxx Pikachuxxxx added the Architecture Issues related to API/ Engine design and architecture. label Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Architecture Issues related to API/ Engine design and architecture.
Projects
None yet
Development

No branches or pull requests

1 participant