// d3d12umddi.h
PFND3D12DDI_CALC_PRIVATE_PASS_SIZE Pfnd3d12ddiCalcPrivatePassSize;
SIZE_T Pfnd3d12ddiCalcPrivatePassSize(
D3D12DDI_HDEVICE unnamedParam1,
const D3D12DDIARG_CREATE_PASS *unnamedParam2
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
Used in the creation of a pass.
unnamedParam1A handle to the display device (graphics context).
unnamedParam2A pointer to the D3D12DDIARG_CREATE_PASS structure that contains arguments used to create a pass.
Returns SIZE_T.
//Declaration
PFND3D12DDI_CALC_PRIVATE_PASS_SIZE Pfnd3d12ddiCalcPrivatePassSize;
// Definition
SIZE_T Pfnd3d12ddiCalcPrivatePassSize
(
D3D12DDI_HDEVICE Arg1
const D3D12DDIARG_CREATE_PASS *
)
{...}
This callback is used as part of a test to see if drivers can find perf wins from being told when apps are repeating "passes" of consistent workloads. The app instructs the driver to observe how some passes run and gives the driver a chance to make optimizations for future runs of the same pass. The contents of a "pass" can be anything - it is up to the app to be relatively consistent in the overall performance characteristics of a pass.