countbits
Description
Population count.
Signature
uint countbits(uint value); vector<uint, N> countbits<N:int>(vector<uint, N> value);
Generic Parameters
N : int
Parameters
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.