enumerazione D2D1_PIXEL_OPTIONS (d2d1effectauthor.h)

Indica il modo in cui il campionamento dello shader pixel sarà limitato.

Sintassi

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

Costanti

 
D2D1_PIXEL_OPTIONS_NONE
Valore: 0
Lo shader pixel non è limitato nel campionamento.
D2D1_PIXEL_OPTIONS_TRIVIAL_SAMPLING
Valore: 1
Gli esempi di pixel shader vengono inseriti solo con la stessa coordinata della scena del pixel di output e restituisce nero trasparente ogni volta che i pixel di input sono anche trasparenti in nero.
D2D1_PIXEL_OPTIONS_FORCE_DWORD
Valore: 0xffffffff

Commenti

Se lo shader specifica D2D1_PIXEL_OPTIONS_NONE, deve comunque implementare correttamente l'area dei calcoli di interesse in ID2D1Transform::MapOutputRectRectInputRects e ID2D1Transform::MapInputRectsToOutputRect.

Requisiti

   
Client minimo supportato Windows 8 e Platform Update per Windows 7 [app desktop | App UWP]
Server minimo supportato Windows Server 2012 e Aggiornamento della piattaforma per Windows Server 2008 R2 [app desktop | App UWP]
Intestazione d2d1effectauthor.h

Vedi anche

ID2D1DrawInfo::SetPixelShader