|
1.0.0 API documentation
|
Go to the documentation of this file.
14 #include "../detail/setup.hpp"
19 #include "../ext/scalar_int_sized.hpp"
20 #include "../ext/scalar_uint_sized.hpp"
21 #include "../detail/qualifier.hpp"
22 #include "../detail/_vectorize.hpp"
26 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
27 # pragma message("GLM: GLM_GTC_bitfield extension included")
38 template<
typename genIUType>
39 GLM_FUNC_DECL genIUType
mask(genIUType Bits);
48 template<length_t L,
typename T, qualifier Q>
49 GLM_FUNC_DECL vec<L, T, Q>
mask(vec<L, T, Q>
const& v);
54 template<
typename genIUType>
64 template<length_t L,
typename T, qualifier Q>
70 template<
typename genIUType>
80 template<length_t L,
typename T, qualifier Q>
86 template<
typename genIUType>
87 GLM_FUNC_DECL genIUType
bitfieldFillOne(genIUType Value,
int FirstBit,
int BitCount);
96 template<length_t L,
typename T, qualifier Q>
97 GLM_FUNC_DECL vec<L, T, Q>
bitfieldFillOne(vec<L, T, Q>
const& Value,
int FirstBit,
int BitCount);
102 template<
typename genIUType>
112 template<length_t L,
typename T, qualifier Q>
113 GLM_FUNC_DECL vec<L, T, Q>
bitfieldFillZero(vec<L, T, Q>
const& Value,
int FirstBit,
int BitCount);
266 #include "bitfield.inl"
vec< 2, uint8, defaultp > u8vec2
8 bit unsigned integer vector of 2 components type.
detail::uint64 uint64
64 bit unsigned integer type.
detail::uint8 uint8
8 bit unsigned integer type.
GLM_FUNC_DECL glm::u32vec2 bitfieldDeinterleave(glm::uint64 x)
Deinterleaves the bits of x.
GLM_FUNC_DECL vec< L, T, Q > bitfieldFillOne(vec< L, T, Q > const &Value, int FirstBit, int BitCount)
Set to 1 a range of bits.
detail::uint16 uint16
16 bit unsigned integer type.
detail::int16 int16
16 bit signed integer type.
GLM_FUNC_DECL vec< L, T, Q > bitfieldRotateLeft(vec< L, T, Q > const &In, int Shift)
Rotate all bits to the left.
vec< 2, uint32, defaultp > u32vec2
32 bit unsigned integer vector of 2 components type.
GLM_FUNC_DECL vec< L, T, Q > bitfieldFillZero(vec< L, T, Q > const &Value, int FirstBit, int BitCount)
Set to 0 a range of bits.
detail::int32 int32
32 bit signed integer type.
GLM_FUNC_DECL vec< L, T, Q > bitfieldRotateRight(vec< L, T, Q > const &In, int Shift)
Rotate all bits to the right.
detail::int8 int8
8 bit signed integer type.
GLM_FUNC_DECL uint64 bitfieldInterleave(uint16 x, uint16 y, uint16 z, uint16 w)
Interleaves the bits of x, y, z and w.
GLM_FUNC_DECL vec< L, T, Q > mask(vec< L, T, Q > const &v)
Build a mask of 'count' bits.
detail::uint32 uint32
32 bit unsigned integer type.
detail::int64 int64
64 bit signed integer type.
vec< 2, uint16, defaultp > u16vec2
16 bit unsigned integer vector of 2 components type.