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

step - HLSL


Returns (x >= y) ? 1 : 0.

Syntax

ret step(y, x)

Where:

NameIn/OutTemplate TypeComponent TypeSize
yinscalar, vector, or matrixfloatany
xinsame as input yfloatsame dimension(s) as input y
retoutsame as input yfloatsame dimension(s) as input y

Minimum Shader Version

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

Vertex ShaderPixel Shader
vs_1_1ps_1_4


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