PFND3D12DDI_ALLOCATE_CB_0022 callback function (d3d12umddi.h)

The pfnAllocateCb callback function controls heap allocation by using a D3D12DDICB_ALLOCATE_0022 value.

Syntax

PFND3D12DDI_ALLOCATE_CB_0022 Pfnd3d12ddiAllocateCb0022;

HRESULT Pfnd3d12ddiAllocateCb0022(
  D3D12DDI_HRTDEVICE unnamedParam1,
  D3D12DDICB_ALLOCATE_0022 *unnamedParam2
)
{...}

Parameters

unnamedParam1

The handle for a device.

unnamedParam2

A D3D12DDICB_ALLOCATE_0022 structure that contains information for an allocation.

Return value

If this callback function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

Access this callback function by using the D3D12DDI_CORELAYER_DEVICECALLBACKS_0022 structure.

The driver must check the return value of the function.

Requirements

Requirement Value
Target Platform Windows
Header d3d12umddi.h (include D3d12umddi.h)

See also

D3D12DDICB_ALLOCATE_0022

D3D12DDI_CORELAYER_DEVICECALLBACKS_0022

pfnDeallocateCb