MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
Graphics.hpp
Go to the documentation of this file.
1#pragma once
2
3namespace MayaFlux::Core {
4class VulkanBackend;
5}
6
8
9/**
10 * @brief Initialize Portal::Graphics Glue Layer
11 * @param backend Initialized Vulkan backend
12 * @return True if initialization succeeded
13 *
14 * Initializes all Portal::Graphics managers:
15 * - TextureLoom (texture management)
16 * - SamplerForge (sampler creation)
17 * - ShaderFoundry (shader compilation + resources)
18 * - ComputePress (compute pipeline + dispatch)
19 * - RenderFlow (graphics pipeline + rendering)
20 *
21 * Must be called after backend initialization (VulkanBackend::initialize()).
22 */
23MAYAFLUX_API bool initialize(const std::shared_ptr<Core::VulkanBackend>& backend);
24
25/**
26 * @brief Stop all Portal::Graphics operations
27 *
28 * Frees command buffers and stops active rendering.
29 * Call this AFTER graphics thread stops, BEFORE destroying resources.
30 */
31MAYAFLUX_API void stop();
32
33/**
34 * @brief Shutdown Portal::Graphics subsystem
35 *
36 * Destroys all pipelines, shaders, and resources.
37 * Must be called AFTER stop().
38 */
39MAYAFLUX_API void shutdown();
40
41/**
42 * @brief Check if Portal::Graphics is initialized
43 */
44MAYAFLUX_API bool is_initialized();
45
46} // namespace MayaFlux::Portal::Graphics
void initialize()
Definition main.cpp:11
void stop()
Stop all Portal::Graphics operations.
Definition Graphics.cpp:69
void shutdown()
Shutdown Portal::Graphics subsystem.
Definition Graphics.cpp:87
bool is_initialized()
Check if Portal::Graphics is initialized.
Definition Graphics.cpp:109