Texture3D::GetDimensions 函式

傳回資源的維度。

語法

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

參數

MipLevel [in]

類型: UINT

選擇性。 如果使用 NumberOfLevels) ,則必須指定 Mipmap 層級 (。

寬度 [out]

類型: UINT

資源寬度,以紋素表示。

高度 [out]

類型: UINT

資源高度,以紋素表示。

深度 [out]

類型: UINT

資源深度,以紋素表示。

NumberOfLevels [out]

類型: UINT

(mipmap 層級的數目也需要 MipLevel) 。

傳回值

Nothing

備註

這是這個方法的多載版本清單。

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);

下列著色器類型支援此函式:

頂點 船體 網域 幾何形狀 像素 計算
x x

 

另請參閱

Texture3D

著色器模型 5