Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 979 Bytes

d1144.md

File metadata and controls

38 lines (24 loc) · 979 Bytes
title ms.assetid description keywords topic_type api_name api_type ms.topic ms.date
D1144 Effect Is Not A Target
34d22e28-3354-48b5-bf6c-09b79e64e7c7
Learn more about: D1144: Effect Is Not A Target
D1144 Effect Is Not A Target Direct2D
apiref
D1144 Effect Is Not A Target
NA
reference
05/31/2018

D1144: Effect Is Not A Target

SetTarget failed because an effect was passed as a target.

 

Possible Causes

ID2D1DeviceContext::SetTarget takes an ID2D1Image* parameter. Direct2D images may be bitmaps, command lists or effects. Direct2D only considers bitmaps and command lists to be valid targets.

Possible Fixes

Modify the application to use a bitmap or command list as its device context’s target. Direct2D does not perform initialization of effects using SetTarget. Rather, to choose the content of an effect, an application creates the effect using ID2D1DeviceContext::CreateEffect and uses a corresponding effect GUID.