7#ifndef PXR_IMAGING_HD_ST_SUBTEXTURE_IDENTIFIER_H
8#define PXR_IMAGING_HD_ST_SUBTEXTURE_IDENTIFIER_H
11#include "pxr/imaging/hdSt/api.h"
17PXR_NAMESPACE_OPEN_SCOPE
34 virtual std::unique_ptr<HdStSubtextureIdentifier> Clone()
const = 0;
43 virtual ID _Hash()
const = 0;
76 ID _Hash()
const override;
103 bool premultiplyAlpha,
104 const TfToken& sourceColorSpace);
107 std::unique_ptr<HdStSubtextureIdentifier> Clone()
const override;
110 bool GetFlipVertically()
const {
return _flipVertically; }
113 bool GetPremultiplyAlpha()
const {
return _premultiplyAlpha; }
116 TfToken GetSourceColorSpace()
const {
return _sourceColorSpace; }
123 ID _Hash()
const override;
126 bool _flipVertically;
127 bool _premultiplyAlpha;
164 std::unique_ptr<HdStSubtextureIdentifier> Clone()
const override;
173 ID _Hash()
const override;
191 std::unique_ptr<HdStSubtextureIdentifier> Clone()
const override;
194 bool GetPremultiplyAlpha()
const {
return _premultiplyAlpha; }
201 ID _Hash()
const override;
204 bool _premultiplyAlpha;
221 const TfToken& sourceColorSpace);
224 std::unique_ptr<HdStSubtextureIdentifier> Clone()
const override;
227 bool GetPremultiplyAlpha()
const {
return _premultiplyAlpha; }
230 TfToken GetSourceColorSpace()
const {
return _sourceColorSpace; }
237 ID _Hash()
const override;
240 bool _premultiplyAlpha;
244PXR_NAMESPACE_CLOSE_SCOPE
Specifies whether a UV texture should be loaded flipped vertically, whether it should be loaded with ...
HDST_API HdStAssetUvSubtextureIdentifier(bool flipVertically, bool premultiplyAlpha, const TfToken &sourceColorSpace)
C'tor takes bool whether flipping vertically, whether to pre-multiply by alpha, and the texture's sou...
Used as a tag that the Storm texture system returns a HdStDynamicUvTextureObject that is populated by...
virtual HDST_API HdStDynamicUvTextureImplementation * GetTextureImplementation() const
Textures can return their own HdStDynamicUvTextureImplementation to customize the load and commit beh...
Allows external clients to specify how a UV texture is loaded from, e.g., a file and how it is commit...
Base class for information identifying a grid in a volume field file.
HDST_API int GetFieldIndex() const
Get field index.
HDST_API TfToken const & GetFieldName() const
Get field name.
Specifies whether a Ptex texture should be loaded with pre-multiplied alpha values.
HDST_API HdStPtexSubtextureIdentifier(bool premultiplyAlpha)
C'tor takes bool whether to pre-multiply by alpha.
Base class for additional information to identify a texture in a file that can contain several textur...
Specifies whether a Udim texture should be loaded with pre-multiplied alpha values and the color spac...
HDST_API HdStUdimSubtextureIdentifier(bool premultiplyAlpha, const TfToken &sourceColorSpace)
C'tor takes bool whether to pre-multiply by alpha and the texture's source color space.
Token for efficient comparison, assignment, and hashing of known strings.
TfToken class for efficient string referencing and hashing, plus conversions to and from stl string c...