2
0

UVec4.cpp 537 B

123456789101112131415161718
  1. // SPDX-FileCopyrightText: 2021 Jorrit Rouwe
  2. // SPDX-License-Identifier: MIT
  3. #include <Jolt/Jolt.h>
  4. JPH_NAMESPACE_BEGIN
  5. // Table that shifts vector components by 4 - X floats to the left
  6. const UVec4 UVec4::sFourMinusXShuffle[5] =
  7. {
  8. UVec4(0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff),
  9. UVec4(0x0f0e0d0c, 0xffffffff, 0xffffffff, 0xffffffff),
  10. UVec4(0x0b0a0908, 0x0f0e0d0c, 0xffffffff, 0xffffffff),
  11. UVec4(0x07060504, 0x0b0a0908, 0x0f0e0d0c, 0xffffffff),
  12. UVec4(0x03020100, 0x07060504, 0x0b0a0908, 0x0f0e0d0c)
  13. };
  14. JPH_NAMESPACE_END