reversebits function

Reverses the order of the bits, per component.

Syntax

uint reversebits(
  in uint value
);

Parameters

value [in]

Type: uint

The input value.

Return value

Type: uint

The input value, with the bit order reversed.

Remarks

The following overloaded versions are also available:


uint2 reversebits(uint2 value);
uint3 reversebits(uint3 value);
uint4 reversebits(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: