Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ID2D1RenderInfo::SetInstructionCountHint method

Provides an estimated hint of shader execution cost to D2D.

Syntax


void SetInstructionCountHint(
   UINT32 instructionCount
);

Parameters

instructionCount

Type: UINT32

An approximate instruction count of the associated shader.

Return value

This method does not return a value.

Remarks

The instruction count may be set according to the number of instructions in the shader. This information is used as a hint when rendering extremely large images. Calling this API is optional, but it may improve performance if you provide an accurate number.

Note  Instructions that occur in a loop should be counted according to the number of loop iterations.
 

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

See also

ID2D1RenderInfo

 

 

Show:
© 2017 Microsoft