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

#include <RadientMaterialSRBTable.hpp>

Public Member Functions

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.