24 #ifndef PXR_IMAGING_HGI_TYPES_H
25 #define PXR_IMAGING_HGI_TYPES_H
29 #include "pxr/imaging/hgi/api.h"
35 PXR_NAMESPACE_OPEN_SCOPE
47 HgiFormatInvalid = -1,
99 HgiFormatUNorm8Vec4srgb,
102 HgiFormatBC6FloatVec3,
105 HgiFormatBC6UFloatVec3,
109 HgiFormatBC7UNorm8Vec4,
113 HgiFormatBC7UNorm8Vec4srgb,
117 HgiFormatBC1UNorm8Vec4,
121 HgiFormatBC3UNorm8Vec4,
124 HgiFormatFloat32UInt8,
144 size_t HgiGetComponentCount(HgiFormat f);
155 size_t HgiGetDataSizeOfFormat(
157 size_t *blockWidth =
nullptr,
158 size_t *blockHeight =
nullptr);
162 bool HgiIsCompressed(HgiFormat f);
168 size_t HgiGetDataSize(
186 std::vector<HgiMipInfo>
191 size_t dataByteSize = std::numeric_limits<size_t>::max());
193 PXR_NAMESPACE_CLOSE_SCOPE
size_t byteOffset
Offset in bytes from start of texture data to start of mip map.
HgiMipInfo describes size and other info for a mip level.
Basic type for a vector of 3 int components.
GfVec3i dimensions
Dimension of mip GfVec3i.
size_t byteSizePerLayer
size of (one layer if array of) mip map in bytes.