All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HdStTexture Class Reference

#include <texture.h>

+ Inheritance diagram for HdStTexture:

Public Member Functions

HDST_API HdStTexture (SdfPath const &id)
virtual HDST_API ~HdStTexture ()
virtual HDST_API void Sync (HdSceneDelegate *sceneDelegate, HdRenderParam *renderParam, HdDirtyBits *dirtyBits) override
virtual HDST_API HdDirtyBits GetInitialDirtyBitsMask () const override
- Public Member Functions inherited from HdTexture
HD_API HdTexture (SdfPath const &id)
virtual HD_API ~HdTexture ()
- Public Member Functions inherited from HdBprim
HD_API HdBprim (SdfPath const &id)
virtual HD_API ~HdBprim ()
SdfPath constGetId () const
virtual HD_API void Finalize (HdRenderParam *renderParam)

Protected Member Functions

HdStTextureResourceSharedPtr _GetTextureResource (HdSceneDelegate *sceneDelegate, const SdfPath &sceneId, HdTextureResource::ID texID) const
void _RegisterTextureResource (HdRenderIndex *renderIndex, const SdfPath &textureHandleId, const HdTextureResourceSharedPtr &textureResource)

Additional Inherited Members

- Public Types inherited from HdTexture
enum  DirtyBits : HdDirtyBits { Clean = 0, DirtyParams = 1 << 0, DirtyTexture = 1 << 1, AllDirty }

Detailed Description

Represents a Texture Buffer Prim. Texture could be a uv texture or a ptex texture. Multiple texture prims could represent the same texture buffer resource and the scene delegate is used to get a global unique id for the texture. The delegate is also used to obtain a HdTextureResource for the texture represented by that id.

Definition at line 56 of file texture.h.

Constructor & Destructor Documentation

HDST_API HdStTexture::HdStTexture ( SdfPath const id)
virtual HDST_API HdStTexture::~HdStTexture ( )

Member Function Documentation

HdStTextureResourceSharedPtr HdStTexture::_GetTextureResource ( HdSceneDelegate sceneDelegate,
const SdfPath sceneId,
HdTextureResource::ID  texID 
) const
void HdStTexture::_RegisterTextureResource ( HdRenderIndex renderIndex,
const SdfPath textureHandleId,
const HdTextureResourceSharedPtr textureResource 
virtual HDST_API HdDirtyBits HdStTexture::GetInitialDirtyBitsMask ( ) const

Returns the minimal set of dirty bits to place in the change tracker for use in the first sync of this prim. Typically this would be all dirty bits.

Implements HdBprim.

virtual HDST_API void HdStTexture::Sync ( HdSceneDelegate sceneDelegate,
HdRenderParam renderParam,
HdDirtyBits dirtyBits 

Synchronizes state from the delegate to Hydra, for example, allocating parameters into GPU memory.

Implements HdBprim.

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