Texture3D::GetDimensions function

Returns the dimensions of the resource.

Syntax

void GetDimensions(
  in  UINT MipLevel,
  out UINT Width,
  out UINT Height,
  out UINT Depth,
  out UINT NumberOfLevels
);

Parameters

MipLevel [in]

Type: UINT

Optional. Mipmap level (must be specified if NumberOfLevels is used).

Width [out]

Type: UINT

The resource width, in texels.

Height [out]

Type: UINT

The resource height, in texels.

Depth [out]

Type: UINT

The resource depth, in texels.

NumberOfLevels [out]

Type: UINT

The number of mipmap levels (requires MipLevel also).

Return value

Nothing

Remarks

This is a list of the overloaded versions of this method.

void GetDimensions(UINT MipLevel, 
  out UINT Width,
  out UINT Height,
  out UINT Depth,
  out UINT NumberOfLevels);

void GetDimensions (out UINT Width,
  out UINT Height,
  out UINT Depth);

void GetDimensions(UINT MipLevel,
  out float Width,
  out float Height,
  out float Depth,
  out float NumberOfLevels);

void GetDimensions(out float Width,
  out float Height,
  out float Depth);

This function is supported for the following types of shaders:

Vertex Hull Domain Geometry Pixel Compute
x x

 

See also

Texture3D

Shader Model 5