PFND3D12DDI_CHECKRESOURCEALLOCATIONINFO_0022 callback function

The pfnCheckResourceAllocationInfo callback function supports checking resource allocation information.

Syntax

PFND3D12DDI_CHECKRESOURCEALLOCATIONINFO_0022 Pfnd3d12ddiCheckresourceallocationinfo0022;

void Pfnd3d12ddiCheckresourceallocationinfo0022(
  D3D12DDI_HDEVICE Arg1,
  const D3D12DDIARG_CREATERESOURCE_0003 *Arg2,
  D3D12DDI_RESOURCE_OPTIMIZATION_FLAGS Arg3,
  UINT32 AlignmentRestriction,
  UINT VisibleNodeMask,
  D3D12DDI_RESOURCE_ALLOCATION_INFO_0022 *Arg6
)
{...}

Parameters

Arg1

hDevice

A handle to the display device (graphics context).

Arg2

CreateResource [in]

A pointer to a create resource.

Arg3

ResourceOptimizationFlags

Resource optimization flags.

AlignmentRestriction

An alignment restriction value.

VisibleNodeMask

A visible node mask.

Arg6

pInfo [out]

Information for resource allocation.

Return Value

This callback function does not return a value.

Remarks

This callback function is part of a two step process of resource creation. This function determines the sizes and alignments of the resource data, additional data header, and additional data is determined, along with the texture layout. When the resource description is passed into this function, the layout of the resource description may be set to _UNDEFINED. This allows the driver to choose any texture layout. When the ayout of the resource description is STANDARD_SWIZZLE or ROW_MAJOR, the driver must return out the corresponding value as its choice.

This callback function is accessed by using the D3D12DDI_DEVICE_FUNCS_CORE_0010 structure.

Requirements

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