Diligent Engine
Loading...
Searching...
No Matches
Diligent::IRadientTextureAsset Struct Referenceabstract

A texture asset and its immutable logical image description. More...

#include <RadientAssets.h>

Inheritance diagram for Diligent::IRadientTextureAsset:
Diligent::IRadientAsset Diligent.IObject

Public Member Functions

virtual const RadientTextureAssetDesc &DILIGENT_CALL_TYPE GetDesc () const =0
Public Member Functions inherited from Diligent::IRadientAsset
virtual const RadientAssetReference &DILIGENT_CALL_TYPE GetReference () const =0
 Returns the asset reference identity.
virtual RADIENT_ASSET_TYPE DILIGENT_CALL_TYPE GetType () const =0
 Returns the concrete asset type.
Public Member Functions inherited from Diligent.IObject
virtual void DILIGENT_CALL_TYPE QueryInterface (const INTERFACE_ID &IID, IObject **ppInterface)=0
 Queries the specific interface.
template<typename DerivedType, typename = typename std::enable_if<std::is_base_of<IObject, DerivedType>::value>::type>
void QueryInterface (const INTERFACE_ID &IID, DerivedType **ppInterface)
virtual ReferenceCounterValueType DILIGENT_CALL_TYPE AddRef ()=0
 Increments the number of strong references by 1.
virtual ReferenceCounterValueType DILIGENT_CALL_TYPE Release ()=0
virtual IReferenceCounters *DILIGENT_CALL_TYPE GetReferenceCounters () const =0

Detailed Description

A texture asset and its immutable logical image description.

Member Function Documentation

◆ GetDesc()

virtual const RadientTextureAssetDesc &DILIGENT_CALL_TYPE Diligent::IRadientTextureAsset::GetDesc ( ) const
pure virtual

Returns the immutable texture description. The description is empty until CPU loading completes successfully; GPU resources and upload completion are not required. Decode failures leave the description empty. Once CPU loading succeeds, the description remains available even if GPU creation or upload later fails or is cancelled, and its members do not change. The returned reference remains valid while the texture asset is retained.