firstbithigh (función)
Obtiene la ubicación del primer bit establecido a partir del bit de orden más alto y funciona hacia abajo, por componente.
Sintaxis
int firstbithigh(
in int value
);
Parámetros
-
value [in]
-
Tipo: int
Valor de entrada.
Valor devuelto
Tipo: int
Ubicación del primer bit establecido.
Comentarios
Para un entero con signo, el primer bit significativo es cero para un número negativo.
Las siguientes versiones sobrecargadas también están disponibles:
int2 firstbithigh(int2 value);
int3 firstbithigh(int3 value);
int4 firstbithigh(int4 value);
uint firstbithigh(uint value);
uint2 firstbithigh(uint2 value);
uint3 firstbithigh(uint3 value);
uint4 firstbithigh(uint4 value);
Modelo de sombreador mínimo
Esta función se admite en los siguientes modelos de sombreador.
Modelo de sombreador | Compatible |
---|---|
Modelo de sombreador 5 y modelos de sombreador posteriores | sí |
Esta función se admite en los siguientes tipos de sombreadores:
Vértice | Casco | Domain | Geometría | Píxel | Compute |
---|---|---|---|---|---|
x | x | x | x | x | x |
Consulte también