다음을 통해 공유


GetDimensions(DirectX HLSL 텍스처 개체)

텍스처 크기 정보를 가져옵니다. 구문 블록은 메서드 선언에서 가능한 모든 매개 변수를 보여 줍니다. 설명 섹션의 표는 각 텍스처 개체 형식에 대해 구현된 매개 변수를 보여 줍니다.

void Object.GetDimensions( UINT MipLevel, typeX Width, typeX Height, typeX Elements, typeX Depth, typeX NumberOfLevels, typeX NumberOfSamples );

typeX는 uint 또는 float의 두 가지 가능한 형식이 있음을 나타냅니다.

매개 변수

항목 설명
Object
Buffer 개체를 제외한 모든 texture-object 형식입니다.
MipLevel
[in] 밉맵 수준을 식별하는 0부터 시작하는 인덱스입니다. 이 인수를 사용하지 않으면 첫 번째 밉 수준이 가정됩니다.
Width
[out] 텍스처 너비(텍셀)입니다.
Height
[out] 텍스처 높이(텍셀)입니다.
Elements
[out] 배열의 요소 수입니다.
Depth
[out] 텍스처 깊이(텍셀)입니다.
NumberOfLevels
[out] 밉맵 수준의 수입니다.
NumberOfSamples
[out] 샘플 수입니다.

반환 값

없음

오버로드된 메서드

이 표에는 방법의 모든 다른 버전이 나열되어 있습니다. 버전은 입력 매개 변수의 수에 따라 다릅니다. 정수 매개 변수를 사용하는 모든 메서드에는 부동 소수점 매개 변수를 사용하는 오버로드된 메서드가 있습니다.

텍스처 개체 형식 입력 매개 변수
Texture1D UINT MipLevel, UINT Width, UINT NumberOfLevels
Texture1D UINT Width
Texture1D UINT MipLevel, float Width, float NumberOfLevels
Texture1D float Width
Texture1DArray UINT MipLevel, UINT Width, UINT Elements, UINT NumberOfLevels
Texture1DArray UINT Width, UINT Elements
Texture1DArray UINT MipLevel, float Width, float Elements, float NumberOfLevels
Texture1DArray float Width, float Elements
Texture2D UINT MipLevel, UINT Width, UINT Height, UINT NumberOfLevels
Texture2D UINT Width, UINT Height
Texture2D UINT MipLevel, float Width, float Height, float NumberOfLevels
Texture2D float Width, float Height
Texture2DArray UINT MipLevel, UINT Width, UINT Height, UINT Elements, UINT NumberOfLevels
Texture2DArray UINT Width, UINT Height, UINT Elements
Texture2DArray UINT MipLevel, float Width, float Height, float Elements, float NumberOfLevels
Texture2DArray float Width, float Height, float Elements
Texture3D UINT MipLevel, UINT Width, UINT Height, UINT Depth, UINT NumberOfLevels
Texture3D UINT Width, UINT Height, UINT Depth
Texture3D UINT MipLevel, float Width, float Height, float Depth, float NumberOfLevels
Texture3D float Width, float Height, float Depth
TextureCUBE UINT MipLevel, UINT Width, UINT Height, UINT NumberOfLevels
TextureCUBE UINT Width, UINT Height
TextureCUBE UINT MipLevel, float Width, float Height, UINT NumberOfLevels
TextureCUBE float Width, float Height
TextureCubeArray UINT MipLevel, UINT Width, UINT Height, UINT Elements, UINT NumberOfLevels
TextureCubeArray UINT Width, UINT Height, UINT Elements
TextureCubeArray UINT MipLevel, float Width, float Height, float Elements, float NumberOfLevels
TextureCubeArray float Width, float Height, float Elements
Texture2DMS UINT Width, UINT Height, UINT Samples
Texture2DMS float Width, float Height, float Samples
Texture2DMSArray UINT Width, UINT Height, UINT Elements, UINT Samples
Texture2DMSArray float Width, float Height, float Elements, float Samples

최소 셰이더 모델

이 함수는 다음 셰이더 모델에서 지원됩니다.

vs_4_0 vs_4_1 ps_4_0 ps_4_1 gs_4_0 gs_4_1
x x x x x x
  1. 가장 큰(0번째) 밉맵 수준의 차원을 반환합니다.
  2. TextureCubeArray는 셰이더 모델 4.1 이상에서 사용할 수 있습니다.
  3. 셰이더 모델 4.1은 Direct3D 10.1 이상에서 사용할 수 있습니다.

텍스처 개체