|
|
|
|
/*
|
|
|
|
|
This file is part of Magnum.
|
|
|
|
|
|
|
|
|
|
Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019,
|
|
|
|
|
2020, 2021 Vladimír Vondruš <mosra@centrum.cz>
|
|
|
|
|
|
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a
|
|
|
|
|
copy of this software and associated documentation files (the "Software"),
|
|
|
|
|
to deal in the Software without restriction, including without limitation
|
|
|
|
|
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
|
|
|
and/or sell copies of the Software, and to permit persons to whom the
|
|
|
|
|
Software is furnished to do so, subject to the following conditions:
|
|
|
|
|
|
|
|
|
|
The above copyright notice and this permission notice shall be included
|
|
|
|
|
in all copies or substantial portions of the Software.
|
|
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
|
|
|
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
|
|
|
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
|
|
|
DEALINGS IN THE SOFTWARE.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/* See Magnum/Vk/Enums.cpp and Magnum/Vk/Test/EnumsTest.cpp */
|
|
|
|
|
#ifdef _c
|
|
|
|
|
#define _c2(value) _c(value, value)
|
|
|
|
|
_c2(Float)
|
|
|
|
|
_c2(Half)
|
|
|
|
|
_c2(Double)
|
|
|
|
|
_c2(UnsignedByte)
|
|
|
|
|
_c2(UnsignedByteNormalized)
|
|
|
|
|
_c2(Byte)
|
|
|
|
|
_c2(ByteNormalized)
|
|
|
|
|
_c2(UnsignedShort)
|
|
|
|
|
_c2(UnsignedShortNormalized)
|
|
|
|
|
_c2(Short)
|
|
|
|
|
_c2(ShortNormalized)
|
|
|
|
|
_c2(UnsignedInt)
|
|
|
|
|
_c2(Int)
|
|
|
|
|
_c2(Vector2)
|
|
|
|
|
_c2(Vector2h)
|
|
|
|
|
_c2(Vector2d)
|
|
|
|
|
_c2(Vector2ub)
|
|
|
|
|
_c2(Vector2ubNormalized)
|
|
|
|
|
_c2(Vector2b)
|
|
|
|
|
_c2(Vector2bNormalized)
|
|
|
|
|
_c2(Vector2us)
|
|
|
|
|
_c2(Vector2usNormalized)
|
|
|
|
|
_c2(Vector2s)
|
|
|
|
|
_c2(Vector2sNormalized)
|
|
|
|
|
_c2(Vector2ui)
|
|
|
|
|
_c2(Vector2i)
|
|
|
|
|
_c2(Vector3)
|
|
|
|
|
_c2(Vector3h)
|
|
|
|
|
_c2(Vector3d)
|
|
|
|
|
_c2(Vector3ub)
|
|
|
|
|
_c2(Vector3ubNormalized)
|
|
|
|
|
_c2(Vector3b)
|
|
|
|
|
_c2(Vector3bNormalized)
|
|
|
|
|
_c2(Vector3us)
|
|
|
|
|
_c2(Vector3usNormalized)
|
|
|
|
|
_c2(Vector3s)
|
|
|
|
|
_c2(Vector3sNormalized)
|
|
|
|
|
_c2(Vector3ui)
|
|
|
|
|
_c2(Vector3i)
|
|
|
|
|
_c2(Vector4)
|
|
|
|
|
_c2(Vector4h)
|
|
|
|
|
_c2(Vector4d)
|
|
|
|
|
_c2(Vector4ub)
|
|
|
|
|
_c2(Vector4ubNormalized)
|
|
|
|
|
_c2(Vector4b)
|
|
|
|
|
_c2(Vector4bNormalized)
|
|
|
|
|
_c2(Vector4us)
|
|
|
|
|
_c2(Vector4usNormalized)
|
|
|
|
|
_c2(Vector4s)
|
|
|
|
|
_c2(Vector4sNormalized)
|
|
|
|
|
_c2(Vector4ui)
|
|
|
|
|
_c2(Vector4i)
|
|
|
|
|
_c(Matrix2x2, Vector2)
|
|
|
|
|
_c(Matrix2x2h, Vector2h)
|
|
|
|
|
_c(Matrix2x2d, Vector2d)
|
|
|
|
|
_c(Matrix2x2bNormalized, Vector2bNormalized)
|
|
|
|
|
_c(Matrix2x2sNormalized, Vector2sNormalized)
|
|
|
|
|
_c(Matrix2x3, Vector3)
|
|
|
|
|
_c(Matrix2x3h, Vector3h)
|
|
|
|
|
_c(Matrix2x3d, Vector3d)
|
|
|
|
|
_c(Matrix2x3bNormalized, Vector3bNormalized)
|
|
|
|
|
_c(Matrix2x3sNormalized, Vector3sNormalized)
|
|
|
|
|
_c(Matrix2x4, Vector4)
|
|
|
|
|
_c(Matrix2x4h, Vector4h)
|
|
|
|
|
_c(Matrix2x4d, Vector4d)
|
|
|
|
|
_c(Matrix2x4bNormalized, Vector4bNormalized)
|
|
|
|
|
_c(Matrix2x4sNormalized, Vector4sNormalized)
|
|
|
|
|
_c(Matrix2x2bNormalizedAligned, Vector2bNormalized)
|
|
|
|
|
_c(Matrix2x3hAligned, Vector3h)
|
|
|
|
|
_c(Matrix2x3bNormalizedAligned, Vector3bNormalized)
|
|
|
|
|
_c(Matrix2x3sNormalizedAligned, Vector3sNormalized)
|
|
|
|
|
_c(Matrix3x2, Vector2)
|
|
|
|
|
_c(Matrix3x2h, Vector2h)
|
|
|
|
|
_c(Matrix3x2d, Vector2d)
|
|
|
|
|
_c(Matrix3x2bNormalized, Vector2bNormalized)
|
|
|
|
|
_c(Matrix3x2sNormalized, Vector2sNormalized)
|
|
|
|
|
_c(Matrix3x3, Vector3)
|
|
|
|
|
_c(Matrix3x3h, Vector3h)
|
|
|
|
|
_c(Matrix3x3d, Vector3d)
|
|
|
|
|
_c(Matrix3x3bNormalized, Vector3bNormalized)
|
|
|
|
|
_c(Matrix3x3sNormalized, Vector3sNormalized)
|
|
|
|
|
_c(Matrix3x4, Vector4)
|
|
|
|
|
_c(Matrix3x4h, Vector4h)
|
|
|
|
|
_c(Matrix3x4d, Vector4d)
|
|
|
|
|
_c(Matrix3x4bNormalized, Vector4bNormalized)
|
|
|
|
|
_c(Matrix3x4sNormalized, Vector4sNormalized)
|
|
|
|
|
_c(Matrix3x2bNormalizedAligned, Vector2bNormalized)
|
|
|
|
|
_c(Matrix3x3hAligned, Vector3h)
|
|
|
|
|
_c(Matrix3x3bNormalizedAligned, Vector3bNormalized)
|
|
|
|
|
_c(Matrix3x3sNormalizedAligned, Vector3sNormalized)
|
|
|
|
|
_c(Matrix4x2, Vector2)
|
|
|
|
|
_c(Matrix4x2h, Vector2h)
|
|
|
|
|
_c(Matrix4x2d, Vector4d)
|
|
|
|
|
_c(Matrix4x2bNormalized, Vector2bNormalized)
|
|
|
|
|
_c(Matrix4x2sNormalized, Vector2sNormalized)
|
|
|
|
|
_c(Matrix4x3, Vector3)
|
|
|
|
|
_c(Matrix4x3h, Vector3h)
|
|
|
|
|
_c(Matrix4x3d, Vector3d)
|
|
|
|
|
_c(Matrix4x3bNormalized, Vector3bNormalized)
|
|
|
|
|
_c(Matrix4x3sNormalized, Vector3sNormalized)
|
|
|
|
|
_c(Matrix4x4, Vector4)
|
|
|
|
|
_c(Matrix4x4h, Vector4h)
|
|
|
|
|
_c(Matrix4x4d, Vector4d)
|
|
|
|
|
_c(Matrix4x4bNormalized, Vector4bNormalized)
|
|
|
|
|
_c(Matrix4x4sNormalized, Vector4sNormalized)
|
|
|
|
|
_c(Matrix4x2bNormalizedAligned, Vector2bNormalized)
|
|
|
|
|
_c(Matrix4x3hAligned, Vector3h)
|
|
|
|
|
_c(Matrix4x3bNormalizedAligned, Vector3b)
|
|
|
|
|
_c(Matrix4x3sNormalizedAligned, Vector3s)
|
|
|
|
|
#endif
|