ID2D1ComputeInfo::SetResourceTexture method
[This documentation is preliminary and is subject to change.]
Applies to: desktop apps only
Sets the resource texture corresponding to the specified shader texture index to the specified texture resource.
Syntax
HRESULT SetResourceTexture(
UINT32 textureIndex,
[in] ID2D1ResourceTexture resourceTexture
);
Parameters
textureIndex
The index of the texture to be bound to the pixel shader.resourceTexture [in]
The created resource texture.
Return value
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
HRESULT | Description |
---|---|
S_OK | No error occurred. |
E_INVALIDARG | One or more arguments are not valid. |
Remarks
The texture resource must already have been loaded with ID2D1EffectContext::CreateResourceTexture. This call fails if the specified index overlaps with any input. The input indices always precede the texture LUT indices.
Requirements
Minimum supported client |
Windows 8 Consumer Preview |
Minimum supported server |
Windows Server 8 Beta |
Header |
ID2D1EffectAuthor.h |
Library |
ID2D1.lib |
See also
Build date: 3/7/2012