Skip to content

Latest commit

 

History

History
89 lines (64 loc) · 2.84 KB

nc-d3d12umddi-pfnd3d12ddi_checkresourceallocationinfo_0022.md

File metadata and controls

89 lines (64 loc) · 2.84 KB
UID title description old-location ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos tech.root req.typenames f1_keywords topic_type api_type api_location api_name
NC:d3d12umddi.PFND3D12DDI_CHECKRESOURCEALLOCATIONINFO_0022
PFND3D12DDI_CHECKRESOURCEALLOCATIONINFO_0022 (d3d12umddi.h)
The PFND3D12DDI_CHECKRESOURCEALLOCATIONINFO_0022 callback function checks resource allocation information.
display\pfnd3d12ddi_checkresourceallocationinfo_0022.htm
05/10/2018
PFND3D12DDI_CHECKRESOURCEALLOCATIONINFO_0022 callback function
PFND3D12DDI_CHECKRESOURCEALLOCATIONINFO_0022, PFND3D12DDI_CHECKRESOURCEALLOCATIONINFO_0022 callback, d3d12umddi/pfnCheckResourceAllocationInfo, display.pfnd3d12ddi_checkresourceallocationinfo_0022, pfnCheckResourceAllocationInfo, pfnCheckResourceAllocationInfo callback function [Display Devices]
d3d12umddi.h
D3d12umddi.h
Windows
Windows
display
PFND3D12DDI_CHECKRESOURCEALLOCATIONINFO_0022
d3d12umddi/PFND3D12DDI_CHECKRESOURCEALLOCATIONINFO_0022
APIRef
kbSyntax
UserDefined
D3d12umddi.h
PFND3D12DDI_CHECKRESOURCEALLOCATIONINFO_0022

PFND3D12DDI_CHECKRESOURCEALLOCATIONINFO_0022 callback function

-description

The pfnCheckResourceAllocationInfo callback function supports checking resource allocation information.

-parameters

-param unnamedParam1

hDevice

A handle to the display device (graphics context).

-param unnamedParam2

CreateResource [in]

A pointer to a create resource.

-param unnamedParam3

ResourceOptimizationFlags

Resource optimization flags.

-param AlignmentRestriction

An alignment restriction value.

-param VisibleNodeMask

A visible node mask.

-param unnamedParam6

pInfo [out]

Information for resource allocation.

-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 layout 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.