HDK
|
#include <drawTarget.h>
Public Types | |
typedef TfDeclarePtrs< class Attachment >::RefPtr | AttachmentRefPtr |
![]() | |
typedef std::vector< Binding > | BindingVector |
![]() | |
typedef void(* | UniqueChangedFuncPtr )(TfRefBase const *, bool) |
Public Member Functions | |
GLF_API | ~Attachment () override |
GLuint | GetGlTextureName () override |
Returns the GL texture index (can be used as any regular GL texture) More... | |
GLuint | GetGlTextureMSName () const |
Returns the GL texture index multisampled of this attachment. More... | |
GLenum | GetFormat () const |
Returns the GL format of the texture (GL_RGB, GL_DEPTH_COMPONENT...) More... | |
GLenum | GetType () const |
Returns the GL type of the texture (GL_BYTE, GL_INT, GL_FLOAT...) More... | |
GLenum | GetInternalFormat () const |
Returns the GL internalFormat of the texture. More... | |
int | GetAttach () const |
Returns the GL attachment point index in the framebuffer. More... | |
GLF_API void | ResizeTexture (const GfVec2i &size) |
Resize the attachment recreating the texture. More... | |
GLF_API BindingVector | GetBindings (TfToken const &identifier, GLuint samplerName) override |
GLF_API VtDictionary | GetTextureInfo (bool forceLoad) override |
GLF_API void | TouchContents () |
![]() | |
virtual GLF_API | ~GlfTexture ()=0 |
GlfTexture (const GlfTexture &)=delete | |
GlfTexture & | operator= (const GlfTexture &)=delete |
GLF_API size_t | GetMemoryUsed () const |
Amount of memory used to store the texture. More... | |
GLF_API size_t | GetMemoryRequested () const |
Amount of memory the user wishes to allocate to the texture. More... | |
GLF_API void | SetMemoryRequested (size_t targetMemory) |
Specify the amount of memory the user wishes to allocate to the texture. More... | |
virtual GLF_API bool | IsMinFilterSupported (GLenum filter) |
virtual GLF_API bool | IsMagFilterSupported (GLenum filter) |
GLF_API size_t | GetContentsID () const |
GLF_API HioImage::ImageOriginLocation | GetOriginLocation () const |
GLF_API bool | IsOriginLowerLeft () const |
![]() | |
TfRefBase () | |
TfRefBase (TfRefBase const &) | |
TfRefBase & | operator= (TfRefBase const &) |
size_t | GetCurrentCount () const |
Return the current reference count of this object. More... | |
bool | IsUnique () const |
Return true if only one TfRefPtr points to this object. More... | |
void | SetShouldInvokeUniqueChangedListener (bool shouldCall) |
![]() | |
TfWeakBase () | |
TfWeakBase (const TfWeakBase &) | |
const TfWeakBase & | __GetTfWeakBase__ () const |
const TfWeakBase & | operator= (const TfWeakBase &) |
void | EnableNotification2 () const |
TF_API void const * | GetUniqueIdentifier () const |
Static Public Member Functions | |
static GLF_API AttachmentRefPtr | New (int glIndex, GLenum format, GLenum type, GLenum internalFormat, GfVec2i size, unsigned int numSamples) |
![]() | |
static GLF_API size_t | GetTextureMemoryAllocated () |
static reporting function More... | |
![]() | |
static TF_API void | SetUniqueChangedListener (UniqueChangedListener listener) |
Additional Inherited Members | |
![]() | |
GLF_API | GlfTexture () |
GLF_API | GlfTexture (HioImage::ImageOriginLocation originLocation) |
GLF_API void | _SetMemoryUsed (size_t size) |
virtual GLF_API void | _OnMemoryRequestedDirty () |
GLF_API void | _UpdateContentsID () |
![]() | |
virtual TF_API | ~TfRefBase () |
![]() | |
~TfWeakBase () | |
TfRefPtr< Tf_Remnant > | _Register () const |
template<class T > | |
TfRefPtr< Tf_Remnant > | _Register (T *tempRmnt) const |
bool | _HasRemnant () const |
Definition at line 89 of file drawTarget.h.
typedef TfDeclarePtrs<class Attachment>::RefPtr GlfDrawTarget::Attachment::AttachmentRefPtr |
Definition at line 91 of file drawTarget.h.
|
override |
|
inline |
Returns the GL attachment point index in the framebuffer.
Definition at line 117 of file drawTarget.h.
|
overridevirtual |
Returns the bindings to use this texture for the shader resource named identifier. If samplerId is specified, the bindings returned will use this samplerId for resources which can be sampled.
Implements GlfTexture.
|
inline |
Returns the GL format of the texture (GL_RGB, GL_DEPTH_COMPONENT...)
Definition at line 108 of file drawTarget.h.
|
inline |
Returns the GL texture index multisampled of this attachment.
Definition at line 105 of file drawTarget.h.
|
overridevirtual |
Returns the GL texture index (can be used as any regular GL texture)
Implements GlfTexture.
|
inline |
Returns the GL internalFormat of the texture.
Definition at line 114 of file drawTarget.h.
|
overridevirtual |
Implements GlfTexture.
|
inline |
Returns the GL type of the texture (GL_BYTE, GL_INT, GL_FLOAT...)
Definition at line 111 of file drawTarget.h.
|
static |
Resize the attachment recreating the texture.
Updates the contents signature for the underlying texture to allow downstream consumers to know that the texture image data may have changed.