ID3D11DeviceContext::PSGetConstantBuffers Method

Get the constant buffers used by the pixel shader pipeline stage.

Syntax

public:
void PSGetConstantBuffers(
         UINT StartSlot,
         UINT NumBuffers,
         ID3D11Buffer **ppConstantBuffers
)  

Parameters

StartSlot
Type: UINT 

[in] Index into the device’s zero-based array to begin retrieving constant buffers from (ranges from 0 to D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1).

NumBuffers
Type: UINT 

[in] Number of buffers to retrieve (ranges from 0 to D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot).

ppConstantBuffers
Type: ID3D11Buffer **

[out, optional] Array of constant buffer interface pointers (see ID3D11Buffer) to be returned by the method.

Return value

None.

Remarks

Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks.

Requirements

Header: Declared in d3d11_x.h (d3d11.h on other Windows platforms).

Library: Use d3d11_x.lib (d3d11.lib on other Windows platforms).

See also

ID3D11DeviceContext

ID3D11DeviceContext Members