ID2D1ComputeInfo::SetResourceTexture method

Sets the resource texture corresponding to the given shader texture index to the given texture resource. The texture resource must already have been loaded with ID2D1EffectContext::CreateResourceTexture method. This call will fail if the specified index overlaps with any input. The input indices always precede the texture LUT indices.

Syntax


virtual HRESULT SetResourceTexture(
  UINT32 textureIndex,
  [in]  ID2D1ResourceTexture *resourceTexture
) = 0;

Parameters

textureIndex

Type: UINT32

The index to set the resource texture on.

resourceTexture [in]

Type: ID2D1ResourceTexture*

The resource texture object to set on the shader texture index.

Return value

Type: HRESULT

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

HRESULTDescription
S_OKNo error occurred.
E_OUTOFMEMORYDirect2D could not allocate sufficient memory to complete the call.
E_INVALIDARGAn invalid parameter was passed to the returning function.

 

Requirements

Minimum supported client

Windows 8 and Platform Update for Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Header

D2d1effectauthor.h

Library

D2d1.lib

DLL

D2d1.dll

See also

ID2D1ComputeInfo

 

 

Community Additions

ADD
Show:
© 2014 Microsoft