24 #ifndef PXR_IMAGING_HIO_TYPES_H
25 #define PXR_IMAGING_HIO_TYPES_H
202 size_t *blockWidth =
nullptr,
203 size_t *blockHeight =
nullptr);
HIO_API int HioGetComponentCount(HioFormat format)
Return the count of components (channels) in the given HioFormat.
HIO_API bool HioIsCompressed(HioFormat format)
Return if the given format is compressed.
HIO_API size_t HioGetDataSizeOfFormat(HioFormat format, size_t *blockWidth=nullptr, size_t *blockHeight=nullptr)
Returns the size of bytes per pixel for the given HioFormat.
GLint GLint GLsizei GLint GLenum format
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
#define PXR_NAMESPACE_CLOSE_SCOPE
HIO_API HioType HioGetHioType(HioFormat)
Return the HioType corresponding to the given HioFormat.
HIO_API size_t HioGetDataSizeOfType(HioFormat hioFormat)
Return the size in bytes for a component (channel) in the given HioFormat.
HIO_API HioFormat HioGetFormat(uint32_t nchannels, HioType type, bool isSRGB)
Returns the HioFormat of containing nChannels of HioType type.
HIO_API size_t HioGetDataSize(const HioFormat hioFormat, const GfVec3i &dimensions)