24 #ifndef PXR_IMAGING_HD_ST_TEXTURE_OBJECT_H
25 #define PXR_IMAGING_HD_ST_TEXTURE_OBJECT_H
59 public std::enable_shared_from_this<HdStTextureObject>
85 virtual bool IsValid()
const = 0;
120 virtual void _Load() = 0;
148 size_t _targetMemory;
172 return _wrapParameters;
184 const std::pair<
HdWrap, HdWrap> &wrapParameters);
194 std::pair<HdWrap, HdWrap> _wrapParameters;
195 std::unique_ptr<HdStTextureCpuData> _cpuData;
212 ~HdStAssetUvTextureObject()
override;
219 void _Load()
override;
241 ~HdStFieldTextureObject()
override;
262 return _samplingTransform;
273 void _Load()
override;
279 std::unique_ptr<HdStTextureCpuData> _cpuData;
286 template<HdTextureType textureType>
294 template<HdTextureType textureType>
HDST_API bool _GetPremultiplyAlpha(const HdStSubtextureIdentifier *const subId) const
*get result *(waiting if necessary)*A common idiom is to fire a bunch of sub tasks at the and then *wait for them to all complete We provide a helper class
virtual HDST_API HdTextureType GetTextureType() const =0
GLsizei const GLchar *const * string
virtual HDST_API void _Load()=0
void _CreateTexture(const HgiTextureDesc &desc)
int HgiHandle< class HgiTexture > HgiTextureHandle
HDST_API void _AdjustTotalTextureMemory(int64_t memDiff)
const GfBBox3d & GetBoundingBox() const
HDST_API void _AddToTotalTextureMemory(const HgiTextureHandle &texture)
HdStUvTextureObject(const HdStTextureIdentifier &textureId, HdSt_TextureObjectRegistry *textureObjectRegistry)
HDST_API Hgi * _GetHgi() const
HdStTextureObject(const HdStTextureIdentifier &textureId, HdSt_TextureObjectRegistry *textureObjectRegistry)
~HdStUvTextureObject() override
virtual HDST_API ~HdStTextureObject()
HgiTextureHandle const & GetTexture() const
const HdStTextureIdentifier & GetTextureIdentifier() const
std::shared_ptr< class HdStTextureObject > HdStTextureObjectSharedPtr
HDST_API void SetTargetMemory(size_t)
void _SetCpuData(std::unique_ptr< HdStTextureCpuData > &&)
void _SetWrapParameters(const std::pair< HdWrap, HdWrap > &wrapParameters)
HDST_API HdStResourceRegistry * _GetResourceRegistry() const
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
HDST_API void _SubtractFromTotalTextureMemory(const HgiTextureHandle &texture)
HdStTextureCpuData * _GetCpuData() const
virtual HDST_API bool IsValid() const =0
HDST_API HdTextureType GetTextureType() const overridefinal
HDST_API HioImage::SourceColorSpace _GetSourceColorSpace(const HdStSubtextureIdentifier *const subId) const
const GfMatrix4d & GetSamplingTransform() const
HgiTextureHandle const & GetTexture() const
virtual HDST_API void _Commit()=0
#define PXR_NAMESPACE_CLOSE_SCOPE
HDST_API std::string _GetDebugName(const HdStTextureIdentifier &textureId) const
size_t GetTargetMemory() const
const std::pair< HdWrap, HdWrap > & GetWrapParameters() const