title | description | ms.assetid | keywords | topic_type | api_name | api_type | ms.topic | ms.date | api_location | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Texture2D::GetDimensions function |
Returns the dimensions of the resource. | Texture2D::GetDimensions function |
921e425d-c0dd-4b8d-b590-0599fabfe606 |
|
|
|
|
reference |
05/31/2018 |
Returns the dimensions of the resource.
void GetDimensions(
in
uint MipLevel,
out
uint Width,
out uint Height,
out
uint NumberOfLevels
);
-
MipLevel [in]
-
Type: uint
Optional. The 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.
-
NumberOfLevels [out]
-
Type: uint
The number of mipmap levels (requires MipLevel also).
Nothing
This is a list of the overloaded versions of this method.
void GetDimensions(uint MipLevel,
out uint Width,
out uint Height,
out uint NumberOfLevels);
void GetDimensions (out uint Width,
out uint Height);
void GetDimensions(uint MipLevel,
out float Width,
out float Height,
out float NumberOfLevels);
void GetDimensions(out float Width,
out float Height);
This function is supported for the following types of shaders:
Vertex | Hull | Domain | Geometry | Pixel | Compute |
---|---|---|---|---|---|
x | x |