firstbitlow function
Returns the location of the first set bit starting from the lowest order bit and working upward, per component.
Syntax
int firstbitlow(
in int value
);
Parameters
-
value [in]
-
Type: int
The input value.
Return value
Type: int
The location of the first set bit.
Remarks
The following overloaded versions are also available:
uint2 firstbitlow(uint2 value);
uint3 firstbitlow(uint3 value);
uint4 firstbitlow(uint4 value);
Minimum Shader Model
This function is supported in the following shader models.
Shader Model | Supported |
---|---|
Shader Model 5 and higher shader models | yes |
This function is supported in the following types of shaders:
Vertex | Hull | Domain | Geometry | Pixel | Compute |
---|---|---|---|---|---|
x | x | x | x | x | x |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for