![]() |
Rendering Engine 0.2.0
Modular Graphics Rendering Engine | v0.2.0
|
Interface for backend-specific material GPU resources. More...
#include <i_material_render_resources.hpp>
Inherited by rendering_engine::VulkanMaterialResources.
Public Member Functions | |
| virtual | ~IMaterialRenderResources ()=default |
| virtual void | Initialize (Material *material)=0 |
| Initializes the GPU-side representation of a material. | |
| virtual void | Shutdown ()=0 |
| Releases all GPU resources associated with this material. | |
Interface for backend-specific material GPU resources.
This abstract interface allows Material instances to delegate the creation and destruction of rendering resources to the graphics backend.
Concrete implementations should inherit from this and implement the resource lifecycle methods.
Definition at line 24 of file i_material_render_resources.hpp.
|
virtualdefault |
|
pure virtual |
Initializes the GPU-side representation of a material.
Called by the Material class after parameters and textures are set.
| material | Pointer to the owning Material instance. |
Implemented in rendering_engine::VulkanMaterialResources.
|
pure virtual |
Releases all GPU resources associated with this material.
Called during cleanup or when the renderer rebuilds resources.
Implemented in rendering_engine::VulkanMaterialResources.