ID3D10EffectShaderResourceVariable::SetResource method (d3d10effect.h)

Set a shader resource.

Syntax

HRESULT SetResource(
  [in] ID3D10ShaderResourceView *pResource
);

Parameters

[in] pResource

Type: ID3D10ShaderResourceView*

The address of a pointer to a shader-resource-view interface. See ID3D10ShaderResourceView Interface.

Return value

Type: HRESULT

Returns one of the following Direct3D 10 Return Codes.

Requirements

   
Target Platform Windows
Header d3d10effect.h

See also

ID3D10EffectShaderResourceVariable Interface