PFND3D12DDI_GET_SHADER_STACK_SIZE_0054 callback function (d3d12umddi.h)

Retrieves the amount of stack memory required to invoke a ray tracing shader in HLSL (High-Level Shader Language). Ray generation shaders may return nonzero despite being at the bottom of the stack.

Syntax

PFND3D12DDI_GET_SHADER_STACK_SIZE_0054 Pfnd3d12ddiGetShaderStackSize0054;

UINT Pfnd3d12ddiGetShaderStackSize0054(
  D3D12DDI_HSTATEOBJECT_0054 unnamedParam1,
  LPCWSTR pExportName
)
{...}

Parameters

unnamedParam1

A handle to the state object.

pExportName

Shader entry point in the state object for which to retrieve stack size.

Return value

Returns the amount of stack, in bytes, required to invoke the shader.

Requirements

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