D2D1_PIXEL_OPTIONS enumeration (d2d1effectauthor.h)

Indicates how pixel shader sampling will be restricted.

Syntax

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

Constants

 
D2D1_PIXEL_OPTIONS_NONE
Value: 0
The pixel shader is not restricted in its sampling.
D2D1_PIXEL_OPTIONS_TRIVIAL_SAMPLING
Value: 1
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.
D2D1_PIXEL_OPTIONS_FORCE_DWORD
Value: 0xffffffff

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

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]
Header d2d1effectauthor.h

See also

ID2D1DrawInfo::SetPixelShader