D2D1_PIXEL_OPTIONS enumeration

Indicates how pixel shader sampling will be restricted. This indicates whether the vertex buffer is large and tends to change infrequently or smaller and changes frequently (typically frame over frame).

Syntax


typedef enum D2D1_PIXEL_OPTIONS { 
  D2D1_PIXEL_OPTIONS_NONE              = 0,
  D2D1_PIXEL_OPTIONS_TRIVIAL_SAMPLING  = 1
} D2D1_PIXEL_OPTIONS;

Constants

D2D1_PIXEL_OPTIONS_NONE

The pixel shader is not restricted in its sampling.

D2D1_PIXEL_OPTIONS_TRIVIAL_SAMPLING

The pixel shader samples inputs only at the same scene coordinate as the output pixel and returns transparent black whenever the input pixels are also transparent black.

Remarks

If the shader specifies D2D1_PIXEL_OPTIONS_NONE, it must still correctly implement the region of interest calculations in ID2D1Transform::MapOutputRectToInputRects and ID2D1Transform::MapInputRectsToOutputRect.

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

Type library

D2d1.lib;
D2d1.dll

See also

ID2D1DrawInfo::SetPixelShader

 

 

Community Additions

ADD
Show:
© 2014 Microsoft