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

HdStSimpleTextureResource is a simple (non-drawtarget) texture. More...

+ Inheritance diagram for HdStSimpleTextureResource:

Public Member Functions

HDST_API HdStSimpleTextureResource (GlfTextureHandleRefPtr const &textureHandle, HdTextureType textureType, HdWrap wrapS, HdWrap wrapT, HdWrap wrapR, HdMinFilter minFilter, HdMagFilter magFilter, size_t memoryRequest=0)
 Create a texture resource around a Glf handle. More...
 
virtual HdTextureType GetTextureType () const override
 
virtual size_t GetMemoryUsed () override
 
virtual HDST_API GLuint GetTexelsTextureId () override
 
virtual HDST_API GLuint GetTexelsSamplerId () override
 
virtual HDST_API uint64_t GetTexelsTextureHandle () override
 
virtual HDST_API GLuint GetLayoutTextureId () override
 
virtual HDST_API uint64_t GetLayoutTextureHandle () override
 

Additional Inherited Members

- Public Types inherited from HdTextureResource
typedef size_t ID
 
- Static Public Member Functions inherited from HdTextureResource
static HD_API ID ComputeHash (TfToken const &sourceFile)
 Returns the hash value of the texture for sourceFile. More...
 

Detailed Description

HdStSimpleTextureResource is a simple (non-drawtarget) texture.

Definition at line 74 of file textureResource.h.

Constructor & Destructor Documentation

HDST_API HdStSimpleTextureResource ( GlfTextureHandleRefPtr const &  textureHandle,
HdTextureType  textureType,
HdWrap  wrapS,
HdWrap  wrapT,
HdWrap  wrapR,
HdMinFilter  minFilter,
HdMagFilter  magFilter,
size_t  memoryRequest = 0 
)

Create a texture resource around a Glf handle.

While the texture handle maybe shared between many references to a texture. The texture resource represents a single texture binding.

The memory request can be used to limit, the amount of texture memory this reference requires of the texture. Set to 0 for unrestricted.


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