ScratchImage::Initialize3D Method

Initializes a 3D ScratchImage.

Syntax

public:
HRESULT Initialize3D(
         DXGI_FORMAT fmt,
         size_t width,
         size_t height,
         size_t depth,
         size_t mipLevels
)  

Parameters

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.

depth
Type: size_t 

[in] Depth of the texture.

mipLevels
Type: size_t 

[in] Mip levels.

Return value

Type: HRESULT 

Success or error code.

Requirements

Header: Declared in directxtex.h.