Share via


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.

Syntax

HRESULT SetComputeShader(
  [in]  REFGUID resourceId
);

Parameters

  • resourceId [in]
    The resource ID for the corresponding shader.

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 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.

Requirements

Minimum supported client

Windows 8 Consumer Preview

Minimum supported server

Windows Server 8 Beta

Header

ID2D1EffectAuthor.h

Library

ID2D1.lib

See also

ID2D1ComputeRenderInfo

 

 

Build date: 3/7/2012