ID3D11DeviceContext::VSGetShaderResources method (d3d11.h)
Get the vertex shader resources.
Syntax
void VSGetShaderResources(
[in] UINT StartSlot,
[in] UINT NumViews,
[out, optional] ID3D11ShaderResourceView **ppShaderResourceViews
);
Parameters
[in] StartSlot
Type: UINT
Index into the device's zero-based array to begin getting shader resources from (ranges from 0 to D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1).
[in] NumViews
Type: UINT
The number of resources to get from the device. Up to a maximum of 128 slots are available for shader resources (ranges from 0 to D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot).
[out, optional] ppShaderResourceViews
Type: ID3D11ShaderResourceView**
Array of shader resource view interfaces to be returned by the device.
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
Requirement | Value |
---|---|
Target Platform | Windows |
Header | d3d11.h |
Library | D3D11.lib |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for