PFND3D12DDI_BARRIER_0094 callback function (d3d12umddi.h)
A driver's PFND3D12DDI_BARRIER_0094 (pfnBarrier) callback function synchronizes multiple accesses to resources. This callback supports enhanced barriers.
Syntax
PFND3D12DDI_BARRIER_0094 Pfnd3d12ddiBarrier0094;
void Pfnd3d12ddiBarrier0094(
D3D12DDI_HCOMMANDLIST hDrvCommandList,
UINT32 NumBarriers,
const D3D12DDIARG_BARRIER_0094 *pBarriers
)
{...}
Parameters
hDrvCommandList
A handle to the driver's data for the command list. The driver uses this region of memory to store internal data structures that are related to its command list.
NumBarriers
The number of D3D12DDIARG_BARRIER_0094 structures that pBarriers points to.
pBarriers
Pointer to an array of D3D12DDIARG_BARRIER_0094 structures that contain the enhanced barriers. The array size is specified by NumBarriers.
Return value
None
Remarks
Drivers that report support for enhanced barriers must implement this function. How drivers implement the function is up to the hardware vendor, as long as they meet the design specifications and pass all related conformance tests.
A driver supporting enhanced barriers must expect that legacy ResourceBarrier calls will also use the pfnBarrier function. The legacy PFND3D12DDI_RESOURCEBARRIER_* (pfnResourceBarrier) table entry can be left as NULL.
Access pfnBarrier by using a command list functions structure such as D3D12DDI_COMMAND_LIST_FUNCS_3D_0094.
See Enhanced Barriers for general information.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 11, version 24H2 |
Header | d3d12umddi.h |
See also
D3D12DDI_COMMAND_LIST_FUNCS_3D_0094
D3D12DDI_COMMAND_LIST_FUNCS_VIDEO_DECODE_0088
D3D12DDI_COMMAND_LIST_FUNCS_VIDEO_ENCODE_0088
D3D12DDI_COMMAND_LIST_FUNCS_VIDEO_PROCESS_0088