---
UID: NS:directml.DML_SIZE_2D
title: DML_SIZE_2D
description: Contains values that can represent the size (as supplied to a DirectML operator) of a 2-D plane of elements within a tensor, or a 2-D scale, or any 2-D width/height value.
old-location: direct3d12\dml_size_2d.htm
tech.root: direct3d12
ms.assetid: 1BB42D7B-D17C-4DD1-BE33-C3784DE78743
ms.date: 12/5/2018
ms.keywords: DML_SIZE_2D, DML_SIZE_2D structure, direct3d12.dml_size_2d, directml/DML_SIZE_2D
f1_keywords:
- directml/DML_SIZE_2D
dev_langs:
- c++
req.header: directml.h
req.include-header: 
req.target-type: Windows
req.target-min-winverclnt: 
req.target-min-winversvr: 
req.kmdf-ver: 
req.umdf-ver: 
req.ddi-compliance: 
req.unicode-ansi: 
req.idl: 
req.max-support: 
req.namespace: 
req.assembly: 
req.type-library: 
req.lib: 
req.dll: 
req.irql: 
topic_type:
- APIRef
- kbSyntax
api_type:
- HeaderDef
api_location:
- DirectML.h
api_name:
- DML_SIZE_2D
targetos: Windows
req.typenames: 
req.redist: 
ms.custom: 19H1
---

# DML_SIZE_2D structure


## -description






Contains values that can represent the size (as supplied to a DirectML operator) of a 2-D plane of elements within a tensor, or a 2-D scale, or any 2-D width/height value.


## -struct-fields




### -field Width

Type: [**UINT**](/windows/desktop/winprog/windows-data-types)

The width.


### -field Height

Type: [**UINT**](/windows/desktop/winprog/windows-data-types)

The height.

