All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HdStSamplerObject Class Referenceabstract

#include <samplerObject.h>

+ Inheritance diagram for HdStSamplerObject:

Public Member Functions

virtual ~HdStSamplerObject ()=0

Protected Member Functions

 HdStSamplerObject (HdSt_SamplerObjectRegistry *samplerObjectRegistry)
Hgi_GetHgi () const

Protected Attributes

HdSt_SamplerObjectRegistry *const _samplerObjectRegistry

Detailed Description

A base class encapsulating a GPU sampler object and, optionally, a texture sampler handle (for bindless textures).

The subclasses of HdStSamplerObject mirror the subclasses of HdStTextureObject with the intention that they will be used in conjunction (e.g., the not yet existing HdStPtexSamplerObject will have two samplers and texture sampler handles for the texels and layout texture in a HdStPtexTextureObject).

The GPU resources is con-/destructed immediately in the c'tor/d'tor. By going through the HdSt_SamplerObjectRegistry, we can obtain a shared pointer that can safely be dropped in a different thread. The HdSt_SamplerObjectRegistry is also dispatching by texture type to construct the corresponding sampler type.

Definition at line 66 of file samplerObject.h.

Constructor & Destructor Documentation

virtual HdStSamplerObject::~HdStSamplerObject ( )
pure virtual
HdStSamplerObject::HdStSamplerObject ( HdSt_SamplerObjectRegistry samplerObjectRegistry)

Member Function Documentation

Hgi* HdStSamplerObject::_GetHgi ( ) const

Member Data Documentation

HdSt_SamplerObjectRegistry* const HdStSamplerObject::_samplerObjectRegistry

Definition at line 76 of file samplerObject.h.

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