ID2D1RenderInfo::SetInstructionCountHint method (d2d1effectauthor.h)

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

None

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

Requirement Value
Minimum supported client Windows 8 and Platform Update for Windows 7 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | UWP apps]
Target Platform Windows
Header d2d1effectauthor.h
Library D2d1.lib

See also

ID2D1RenderInfo