PFND3D10DDI_STATE_VS_CONSTBUF_CB callback function

The pfnStateVsConstBufCb function causes the Microsoft Direct3D 10 runtime to refresh the vertex shader stage's bound constant buffers.

Syntax


PFND3D10DDI_STATE_VS_CONSTBUF_CB pfnStateVsConstBufCb;

void APIENTRY pfnStateVsConstBufCb(
  _In_ D3D10DDI_HRTCORELAYER hRuntimeDevice,
  _In_ UINT                  Base,
  _In_ UINT                  Count
)
{ ... }

Parameters

hRuntimeDevice [in]

A handle to a context for the core Direct3D 10 runtime. This handle is supplied to the driver in a call to the driver's CreateDevice(D3D10) function.

Base [in]

The starting constant buffer to refresh.

Count [in]

The total number of buffers to refresh. The number can be -1, which specifies that the Direct3D runtime will use its high watermarks to substitute an optimal value (which is typically less than the maximum valid value for Count). However, no non-NULL binding exists in a slot larger than the optimal Count value.

Return value

None

Remarks

The Base and Count parameters that the driver passes to the pfnStateVsConstBufCb function directly correspond to the StartBuffer and NumBuffers parameters that are passed to the driver's VsSetConstantBuffers function.

Requirements

Target platform

Desktop

Version

Available in Windows Vista and later versions of the Windows operating systems.

Header

D3d10umddi.h (include D3d10umddi.h)

See also

CreateDevice(D3D10)
D3D10DDI_CORELAYER_DEVICECALLBACKS
VsSetConstantBuffers

 

 

Send comments about this topic to Microsoft

Show: