Discards the current pixel if any component of x is less than zero. This can be used to simulate clip planes if each component of x represents the distance from a plane. This function corresponds to the pixel shader assembly language's texkill instruction.
| clip(x) |
|---|
Where:
| Name | In/Out | Template Type | Component Type | Size |
|---|---|---|---|---|
| x | in | scalar, vector, or matrix | float | any |
This intrinsic function is supported in the following (or above) shader versions:
| Vertex Shader | Pixel Shader |
|---|---|
| n/a | ps_1_1 |