Initializes a 2D ScratchImage.
public:
HRESULT Initialize2D(
DXGI_FORMAT fmt,
size_t width,
size_t height,
size_t arraySize,
size_t mipLevels
)
fmt
Type: DXGI_FORMAT
[in] One member of the DXGI_FORMAT enum.
width
Type: size_t
[in] Width of the texture.
height
Type: size_t
[in] Height of the texture.
arraySize
Type: size_t
[in] The number of images.
mipLevels
Type: size_t
[in] Mip levels.
Type: HRESULT
Header: Declared in directxtex.h.