7#ifndef PXR_IMAGING_HGI_TYPES_H
8#define PXR_IMAGING_HGI_TYPES_H
12#include "pxr/imaging/hgi/api.h"
18PXR_NAMESPACE_OPEN_SCOPE
30 HgiFormatInvalid = -1,
82 HgiFormatUNorm8Vec4srgb,
85 HgiFormatBC6FloatVec3,
88 HgiFormatBC6UFloatVec3,
92 HgiFormatBC7UNorm8Vec4,
96 HgiFormatBC7UNorm8Vec4srgb,
100 HgiFormatBC1UNorm8Vec4,
104 HgiFormatBC3UNorm8Vec4,
107 HgiFormatFloat32UInt8,
111 HgiFormatPackedInt1010102,
131size_t HgiGetComponentCount(HgiFormat f);
142size_t HgiGetDataSizeOfFormat(
144 size_t *blockWidth =
nullptr,
145 size_t *blockHeight =
nullptr);
149bool HgiIsCompressed(HgiFormat f);
155size_t HgiGetDataSize(
162HgiFormat HgiGetComponentBaseFormat(
167bool HgiIsFloatFormat(
184std::vector<HgiMipInfo>
189 size_t dataByteSize = std::numeric_limits<size_t>::max());
191PXR_NAMESPACE_CLOSE_SCOPE
Basic type for a vector of 3 int components.
HgiMipInfo describes size and other info for a mip level.
size_t byteOffset
Offset in bytes from start of texture data to start of mip map.
GfVec3i dimensions
Dimension of mip GfVec3i.
size_t byteSizePerLayer
size of (one layer if array of) mip map in bytes.