D3DX12GetBaseSubobjectType function

Returns the subobject type that corresponds to the base class of the passed-in subobject type.

Syntax

D3D12_PIPELINE_STATE_SUBOBJECT_TYPE inline D3DX12GetBaseSubobjectType(
   D3D12_PIPELINE_STATE_SUBOBJECT_TYPE SubobjectType
);

Parameters

SubobjectType

Type: D3D12_PIPELINE_STATE_SUBOBJECT_TYPE

An enumeration value that specifies the subobject type that you're interested in.

Return value

Type: D3D12_PIPELINE_STATE_SUBOBJECT_TYPE

If SubobjectType corresponds to a subobject data type that is derived from another subobject data type, the subobject type of the base subobject data type is returned; otherwise, the passed-in subobject type is returned. For example, if D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL1 is passed in, then D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL is returned.

Remarks

Requirements

Requirement Value
Header
D3dx12.h
Library
D3D12.lib
DLL
D3D12.dll

See also

Helper Functions for D3D12