PFND3D12DDI_SET_PIPELINE_STACK_SIZE_0054 callback function

SetPipelineStackSize sets the current pipeline stack size.

Syntax

PFND3D12DDI_SET_PIPELINE_STACK_SIZE_0054 Pfnd3d12ddiSetPipelineStackSize0054;

void Pfnd3d12ddiSetPipelineStackSize0054(
  D3D12DDI_HSTATEOBJECT_0054 Arg1,
  UINT Arg2
)
{...}

Parameters

Arg1

A handle to the state object.

Arg2

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

Returns void.

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

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