Edit

Share via


PFND3D12DDI_CREATECOMMANDALLOCATOR callback function (d3d12umddi.h)

The user-mode display driver's (UMD) pfnCreateCommandAllocator function creates a command allocator.

Syntax

PFND3D12DDI_CREATECOMMANDALLOCATOR Pfnd3d12ddiCreatecommandallocator;

HRESULT Pfnd3d12ddiCreatecommandallocator(
  D3D12DDI_HDEVICE unnamedParam1,
  const D3D12DDIARG_CREATECOMMANDALLOCATOR *unnamedParam2
)
{...}

Parameters

unnamedParam1

[in] A handle to the display device (graphics context).

unnamedParam2

[in] Pointer to a D3D12DDIARG_CREATECOMMANDALLOCATOR structure that describes the command allocator to create.

Return value

pfnCreateCommandAllocator returns an HRESULT value.

Remarks

The command allocator corresponds to the underlying allocations in which GPU command lists are stored. It applies to both direct and bundle command lists.

Requirements

Requirement Value
Minimum supported client Windows Vista (WDDM 1.0)
Header d3d12umddi.h

See also

D3D12DDIARG_CREATECOMMANDALLOCATOR

pfnCalcPrivateCommandAllocatorSize

pfnDestroyCommandAllocator

pfnResetCommandAllocator