Predicate register (HLSL PS reference)

This pixel shader output register contains a per-channel boolean value.

A predicate register is supported by the following versions:

Pixel shader versions 1_1 1_2 1_3 1_4 2_0 2_sw 2_x 3_0 3_sw
predicate register x x x

 

Here are the register properties.

Register type Count R/W # Read ports # Reads/inst Dimension RelAddr Defaults Requires DCL
Predicate(p) 1 R/W 1 1 4 N/A None N

 

The predicate register can be modified with setp_comp - ps. There are no default values for this register; an application needs to set the register before it is used.

Registers