Rendering Engine 0.2.0
Modular Graphics Rendering Engine | v0.2.0
Loading...
Searching...
No Matches
rendering_engine::IMaterialRenderResources Class Referenceabstract

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~IMaterialRenderResources()

virtual rendering_engine::IMaterialRenderResources::~IMaterialRenderResources ( )
virtualdefault

Member Function Documentation

◆ Initialize()

virtual void rendering_engine::IMaterialRenderResources::Initialize ( Material * material)
pure virtual

Initializes the GPU-side representation of a material.

Called by the Material class after parameters and textures are set.

Parameters
materialPointer to the owning Material instance.

Implemented in rendering_engine::VulkanMaterialResources.

◆ Shutdown()

virtual void rendering_engine::IMaterialRenderResources::Shutdown ( )
pure virtual

Releases all GPU resources associated with this material.

Called during cleanup or when the renderer rebuilds resources.

Implemented in rendering_engine::VulkanMaterialResources.


The documentation for this class was generated from the following file: