ID3D11DeviceX::GetDescriptorSize Method

Gets the size of the specified descriptor type such as resource, shader resource view, unordered access view, constant buffer view, vertex buffer view, or sampler state.

Syntax

public:
UINT GetDescriptorSize(
         D3D11X_DESCRIPTOR_TYPE Type
)  

Parameters

Type
Type: D3D11X_DESCRIPTOR_TYPE 

[in] The descriptor type for which to get the size (such as resource, shader resource view, unordered access view, constant buffer view, vertex buffer view, or sampler state), as a D3D11X_DESCRIPTOR_TYPE enumeration constant.

Return value

Type: UINT 

The size of the descriptor, in bytes.

Requirements

Header: Declared in d3d11_x.h.

Library: Use d3d11_x.lib.

See also

Reference

ID3D11DeviceX Interface

ID3D11DeviceX Members