ID3D11DeviceContext::HSGetShaderResources Method

Get the hull-shader resources.

Syntax

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

Parameter

  • StartSlot [in]
    Typ: 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]
    Typ: 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]
    Typ: ID3D11ShaderResourceView**

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

Rückgabewert

Returns nothing.

Hinweise

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.

Anforderungen

Header

D3D11.h

Bibliothek

D3D11.lib

Siehe auch

ID3D11DeviceContext