ID2D1ComputeRenderInfo::SetComputeShader method
[This documentation is preliminary and is subject to change.]
Applies to: desktop apps only
Sets the compute shader to the specified shader resource.
HRESULT SetComputeShader(
[in] REFGUID resourceId
);
- resourceId [in]
The resource ID for the corresponding shader.
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. |
The resource must be loaded before this call is made.
If this call fails, the corresponding ID2D1Effect instance is placed into an error state and fails to draw.
Minimum supported client |
Windows 8 Consumer Preview |
Minimum supported server |
Windows Server 8 Beta |
Header |
ID2D1EffectAuthor.h |
Library |
ID2D1.lib |
Build date: 3/7/2012