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 ModelSupported
Shader Model 5 and higher shader modelsyes

 

This function is supported in the following types of shaders:

VertexHullDomainGeometryPixelCompute
xxxxxx

 

See also

Intrinsic Functions
Shader Model 5

 

 

Show: