reversebits
Description
Reverse order of bits.
Signature
uint reversebits(uint value); vector<uint, N> reversebits<N:int>(vector<uint, N> value);
Generic Parameters
N : int
Parameters
value : uint
The value to reverse bits of.
value : vector<uint, N>
The value to reverse bits of.
Return value
The bits of value, reversed such that bit n of the result is equal to bit (width - 1 - n) of value.
Remarks
For SPIR-V, this function maps to OpBitReverse.
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.