Vulkan-Hpp
math.hpp
Go to the documentation of this file.
1 // Copyright(c) 2019, NVIDIA CORPORATION. All rights reserved.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 //
15 
16 #if defined( _MSC_VER )
17 # pragma warning( disable : 4201 ) // disable warning C4201: nonstandard extension used: nameless struct/union; needed
18  // to get glm/detail/type_vec?.hpp without warnings
19 #elif defined( __GNUC__ )
20 // don't know how to switch off that warning here
21 #else
22 // unknow compiler... just ignore the warnings for yourselves ;)
23 #endif
24 
25 #include <vulkan/vulkan.hpp>
26 
27 #define GLM_FORCE_RADIANS
28 
29 #if defined( _MSC_VER )
30 # pragma warning( push )
31 # pragma warning( disable : 4127 ) // conditional expression is constant (glm)
32 #endif
33 
34 #include <glm/gtc/matrix_transform.hpp>
35 
36 #if defined( _MSC_VER )
37 # pragma warning( pop )
38 #endif
39 
40 namespace vk
41 {
42  namespace su
43  {
44  glm::mat4x4 createModelViewProjectionClipMatrix( vk::Extent2D const & extent );
45  }
46 } // namespace vk
glm::mat4x4 createModelViewProjectionClipMatrix(vk::Extent2D const &extent)
Definition: math.cpp:31
Definition: vulkan.cppm:23