Share via


Función Texture3D::GetDimensions

Devuelve las dimensiones del recurso.

Sintaxis

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

Parámetros

MipLevel [in]

Tipo: UINT

Opcional. Nivel de mapa mip (debe especificarse si se usa NumberOfLevels ).

Ancho [out]

Tipo: UINT

Ancho del recurso, en elementos de textura.

Alto [out]

Tipo: UINT

Alto del recurso, en elementos de textura.

Profundidad [salida]

Tipo: UINT

Profundidad del recurso, en elementos de textura.

NumberOfLevels [out]

Tipo: UINT

El número de niveles de mapa mip (requiere también MipLevel ).

Valor devuelto

Nada

Comentarios

Esta es una lista de las versiones sobrecargadas de este método.

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

Esta función es compatible con los siguientes tipos de sombreadores:

Vértice Casco Domain Geometría Píxel Proceso
x x

 

Consulte también

Texture3D

Modelo de sombreador 5