Added precision qualifier tests
This commit is contained in:
@@ -7,17 +7,17 @@ namespace glm
|
||||
{
|
||||
enum precision
|
||||
{
|
||||
highp,
|
||||
mediump,
|
||||
lowp,
|
||||
aligned_highp,
|
||||
aligned_mediump,
|
||||
aligned_lowp,
|
||||
packed_highp = highp,
|
||||
packed_mediump = mediump,
|
||||
packed_lowp = lowp,
|
||||
packed = packed_highp,
|
||||
packed_highp,
|
||||
packed_mediump,
|
||||
packed_lowp,
|
||||
aligned = aligned_highp,
|
||||
packed = packed_highp,
|
||||
highp = packed_highp,
|
||||
mediump = packed_mediump,
|
||||
lowp = packed_lowp,
|
||||
# ifdef GLM_FORCE_ALIGNED
|
||||
defaultp = aligned_highp
|
||||
# else
|
||||
@@ -27,26 +27,26 @@ namespace glm
|
||||
|
||||
namespace detail
|
||||
{
|
||||
template <precision P>
|
||||
template <glm::precision P>
|
||||
struct is_aligned
|
||||
{
|
||||
static const bool value = false;
|
||||
};
|
||||
|
||||
template<>
|
||||
struct is_aligned<aligned_lowp>
|
||||
struct is_aligned<glm::aligned_lowp>
|
||||
{
|
||||
static const bool value = true;
|
||||
};
|
||||
|
||||
template<>
|
||||
struct is_aligned<aligned_mediump>
|
||||
struct is_aligned<glm::aligned_mediump>
|
||||
{
|
||||
static const bool value = true;
|
||||
};
|
||||
|
||||
template<>
|
||||
struct is_aligned<aligned_highp>
|
||||
struct is_aligned<glm::aligned_highp>
|
||||
{
|
||||
static const bool value = true;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user