24 #ifndef PXR_IMAGING_HGI_TYPES_H
25 #define PXR_IMAGING_HGI_TYPES_H
161 size_t *blockWidth =
nullptr,
162 size_t *blockHeight =
nullptr);
196 std::vector<HgiMipInfo>
size_t byteOffset
Offset in bytes from start of texture data to start of mip map.
HGI_API bool HgiIsCompressed(HgiFormat f)
Return whether the given format uses compression.
HGI_API size_t HgiGetDataSizeOfFormat(HgiFormat f, size_t *blockWidth=nullptr, size_t *blockHeight=nullptr)
HGI_API std::vector< HgiMipInfo > HgiGetMipInfos(HgiFormat format, const GfVec3i &dimensions, size_t layerCount, size_t dataByteSize=std::numeric_limits< size_t >::max())
GLint GLint GLsizei GLint GLenum format
HGI_API size_t HgiGetDataSize(HgiFormat f, const GfVec3i &dimensions)
GfVec3i dimensions
Dimension of mip GfVec3i.
HGI_API size_t HgiGetComponentCount(HgiFormat f)
Return the count of components in the given format.
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
ImageBuf OIIO_API max(Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
#define PXR_NAMESPACE_CLOSE_SCOPE
size_t byteSizePerLayer
size of (one layer if array of) mip map in bytes.
HGI_API HgiFormat HgiGetComponentBaseFormat(HgiFormat f)