Gets the constant buffers that the pixel shader pipeline stage uses.
public:
void PSGetConstantBuffers1(
UINT StartSlot,
UINT NumBuffers,
ID3D11Buffer **ppConstantBuffers,
UINT *pFirstConstant,
UINT *pNumConstants
)
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 to be returned by the method.
pFirstConstant
Type: UINT *
[out, optional] A pointer to an array that receives the offsets into the buffers that ppConstantBuffers specifies. Each offset specifies where, from the shader’s point of view, each constant buffer starts. Each offset is measured in shader constants, which are 16 bytes (432-bit components). Therefore, an offset of 2 indicates that the start of the associated constant buffer is 32 bytes into the constant buffer. The runtime sets *pFirstConstant to NULL if the buffers do not have offsets.
pNumConstants
Type: UINT *
[out, optional] A pointer to an array that receives the numbers of constants in the buffers that ppConstantBuffers specifies. Each number specifies the number of constants that are contained in the constant buffer that the shader uses. Each number of constants starts from its respective offset that is specified in the pFirstConstant array. The runtime sets pNumConstants to NULL if it doesn’t specify the numbers of constants in each buffer.
If no buffer is bound at a slot, pFirstConstant and pNumConstants are NULL for that slot.
Header: Declared in d3d11_x.h (d3d11_1.h on other Windows platforms).
Library: Use d3d11_x.lib (d3d11.lib on other Windows platforms).