Diligent Engine
Loading...
Searching...
No Matches
Diligent::RadientMaterialSRBLease Class Reference

#include <RadientMaterialSRBTable.hpp>

Public Member Functions

RADIENT_STATUS GetPreparationStatus () const noexcept
Uint32 GetMaterialBufferVersion () const noexcept

Detailed Description

Owning reference to a stable material SRB table entry. The entry and its texture resources are released when the last lease is destroyed. SRB accessors must only be called from the render thread after table preparation.

Member Function Documentation

◆ GetMaterialBufferVersion()

Uint32 Diligent::RadientMaterialSRBLease::GetMaterialBufferVersion ( ) const
noexcept

Returns the material buffer version and uploaded generation bound by this SRB. These values remain unchanged while replacement is pending.

◆ GetPreparationStatus()

RADIENT_STATUS Diligent::RadientMaterialSRBLease::GetPreparationStatus ( ) const
noexcept

Reports the latest texture-resolution/preparation status. A terminal texture failure disables this entry. While replacement is pending, an existing SRB and its successful buffer snapshot remain usable.