Back to Mame

0.9.8: precision.hpp Source File

3rdparty/glm/doc/api/a00085_source.html

latest1.9 KB
Original Source

| | 0.9.8 |

precision.hpp

Go to the documentation of this file.

1

4 #pragma once

5

6 #include "setup.hpp"

7

8 namespace glm

9 {

10enum precision

11 {

12 packed_highp,

13 packed_mediump,

14 packed_lowp,

15

16 # if GLM_HAS_ALIGNED_TYPE

17 aligned_highp,

18 aligned_mediump,

19 aligned_lowp,

20 aligned = aligned_highp,

21 # endif

22

23 highp = packed_highp,

24 mediump = packed_mediump,

25 lowp = packed_lowp,

26 packed = packed_highp,

27

28 # if GLM_HAS_ALIGNED_TYPE && defined(GLM_FORCE_ALIGNED)

29 defaultp = aligned_highp

30 # else

31 defaultp = highp

32 # endif

33 };

34

35 namespace detail

36 {

37template <glm::precision P>

38struct is_aligned

39 {

40static const bool value = false;

41 };

42

43 # if GLM_HAS_ALIGNED_TYPE

44template<>

45struct is_aligned<glm::aligned_lowp>

46 {

47static const bool value = true;

48 };

49

50template<>

51struct is_aligned<glm::aligned_mediump>

52 {

53static const bool value = true;

54 };

55

56template<>

57struct is_aligned<glm::aligned_highp>

58 {

59static const bool value = true;

60 };

61 # endif

62 }//namespace detail

63 }//namespace glm

glm

Definition: _noise.hpp:11

setup.hpp

GLM Core


Generated by 1.8.10