clip - HLSL
Microsoft DirectX 9.0 SDK Update (October 2004)

clip - HLSL


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.

Syntax

clip(x)

Where:

NameIn/OutTemplate TypeComponent TypeSize
xinscalar, vector, or matrixfloatany

Minimum Shader Version

This intrinsic function is supported in the following (or above) shader versions:

Vertex ShaderPixel Shader
n/aps_1_1


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.