PFND3D12DDI_SET_PIPELINE_STACK_SIZE_0054 callback function (d3d12umddi.h)

SetPipelineStackSize sets the current pipeline stack size.

Syntax

PFND3D12DDI_SET_PIPELINE_STACK_SIZE_0054 Pfnd3d12ddiSetPipelineStackSize0054;

void Pfnd3d12ddiSetPipelineStackSize0054(
  D3D12DDI_HSTATEOBJECT_0054 unnamedParam1,
  UINT unnamedParam2
)
{...}

Parameters

unnamedParam1

A handle to the state object.

unnamedParam2

Stack size in bytes to use during pipeline execution for each shader thread (of which there can be many thousands in flight on the GPU).

Return value

None

Remarks

SetPipelineStackSize and GetPipelineStackSize or any use of ray tracing pipeline state objects, such as DispatchRays are not re-entrant. This means that if calling any of these functions from separate threads, the app must synchronize on its own. Any given DispatchRays call or GetPipelineStackSize call uses or returns the most recent stack size setting.

The runtime drops calls to state objects other than ray tracing pipelines (such as collections).

Requirements

Requirement Value
Minimum supported client Windows 10, version 1809
Header d3d12umddi.h