Diligent Engine
 
Loading...
Searching...
No Matches
Diligent::SamplerBase< EngineImplTraits > Class Template Reference

Template class implementing base functionality of the sampler object. More...

#include <SamplerBase.hpp>

Inheritance diagram for Diligent::SamplerBase< EngineImplTraits >:
Diligent::DeviceObjectBase< EngineImplTraits::SamplerInterface, EngineImplTraits::RenderDeviceImplType, SamplerDesc > Diligent::ObjectBase< EngineImplTraits::SamplerInterface > Diligent::RefCountedObject< EngineImplTraits::SamplerInterface >

Public Member Functions

 SamplerBase (IReferenceCounters *pRefCounters, RenderDeviceImplType *pDevice, const SamplerDesc &SamDesc, bool bIsDeviceInternal=false)
 
 SamplerBase (IReferenceCounters *pRefCounters, const SamplerDesc &SamDesc) noexcept
 Special constructor that is only used for serialization when there is no device.
 
- Public Member Functions inherited from Diligent::DeviceObjectBase< EngineImplTraits::SamplerInterface, EngineImplTraits::RenderDeviceImplType, SamplerDesc >
 DeviceObjectBase (IReferenceCounters *pRefCounters, RenderDeviceImplType *pDevice, const SamplerDesc &ObjDesc, bool bIsDeviceInternal=false)
 
virtual Int32 DILIGENT_CALL_TYPE GetUniqueID () const override final
 Returns unique identifier.
 
virtual void DILIGENT_CALL_TYPE SetUserData (IObject *pUserData) override final
 Implementation of IDeviceObject::SetUserData.
 
virtual IObject *DILIGENT_CALL_TYPE GetUserData () const override final
 Implementation of IDeviceObject::GetUserData.
 

Additional Inherited Members

- Protected Attributes inherited from Diligent::DeviceObjectBase< EngineImplTraits::SamplerInterface, EngineImplTraits::RenderDeviceImplType, SamplerDesc >
RenderDeviceImplType *const m_pDevice
 Pointer to the device.
 
SamplerDesc m_Desc
 Object description.
 

Detailed Description

template<typename EngineImplTraits>
class Diligent::SamplerBase< EngineImplTraits >

Template class implementing base functionality of the sampler object.

Template Parameters
EngineImplTraits- Engine implementation type traits.

Constructor & Destructor Documentation

◆ SamplerBase()

template<typename EngineImplTraits>
Diligent::SamplerBase< EngineImplTraits >::SamplerBase ( IReferenceCounters * pRefCounters,
RenderDeviceImplType * pDevice,
const SamplerDesc & SamDesc,
bool bIsDeviceInternal = false )
inline
Parameters
pRefCounters- Reference counters object that controls the lifetime of this sampler.
pDevice- Pointer to the device.
SamDesc- Sampler description.
bIsDeviceInternal- Flag indicating if the sampler is an internal device object and must not keep a strong reference to the device.