Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ID3D11DeviceContext::PSGetShaderResources method

Get the pixel shader resources.

Syntax


void PSGetShaderResources(
  [in]            UINT                     StartSlot,
  [in]            UINT                     NumViews,
  [out, optional] ID3D11ShaderResourceView **ppShaderResourceViews
);

Parameters

StartSlot [in]

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).

NumViews [in]

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).

ppShaderResourceViews [out, optional]

Type: ID3D11ShaderResourceView**

Array of shader resource view interfaces to be returned by the device.

Return value

Returns nothing.

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

D3D11.h

Library

D3D11.lib

See also

ID3D11DeviceContext

 

 

Show:
© 2016 Microsoft