Bewerken

Delen via


PFND3DWDDM2_0DDI_CALCPRIVATESHADERRESOURCEVIEWSIZE callback function (d3d10umddi.h)

CalcPrivateShaderResourceViewSize(WDDM 2.0) determines the size of the user-mode display driver's (UMD's) private region of memory (that is, the size of internal driver structures, not the size of the resource video memory) for a shader resource view.

Syntax

PFND3DWDDM2_0DDI_CALCPRIVATESHADERRESOURCEVIEWSIZE Pfnd3dwddm20DdiCalcprivateshaderresourceviewsize;

SIZE_T Pfnd3dwddm20DdiCalcprivateshaderresourceviewsize(
  D3D10DDI_HDEVICE unnamedParam1,
  const D3DWDDM2_0DDIARG_CREATESHADERRESOURCEVIEW *unnamedParam2
)
{...}

Parameters

unnamedParam1

[in] hDevice is a handle to the display device (graphics context).

unnamedParam2

[in] pCreateShaderResourceView is a pointer to a D3DWDDM2_0DDIARG_CREATESHADERRESOURCEVIEW structure that describes the parameters that UMD uses to calculate the size of the memory region.

Return value

CalcPrivateShaderResourceViewSize(WDDM 2.0) returns the size of the memory region that the driver requires to create a shader resource view.

Requirements

Requirement Value
Minimum supported client Windows 10 (WDDM 2.0)
Header d3d10umddi.h

See also

CreateShaderResourceView(WDDM 2.0)

D3DWDDM2_0DDIARG_CREATESHADERRESOURCEVIEW