firstbithigh
Description
Find first set bit starting at high bit and working down.
Signature
int firstbithigh(int value); vector<int, N> firstbithigh<N:int>(vector<int, N> value); uint firstbithigh(uint value); vector<uint, N> firstbithigh<N:int>(vector<uint, N> value);
Generic Parameters
N : int
Parameters
value : int
value : vector<int, N>
value : uint
value : vector<uint, N>
Availability and Requirements
Defined for the following targets:
hlsl
Available in all stages.
glsl
Available in all stages.
cpp
Available in all stages.
cuda
Available in all stages.
metal
Available in all stages.
wgsl
Available in all stages.
spirv
Available in all stages.