Ion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
uniform.cc File Reference
#include "ion/gfx/uniform.h"
#include <algorithm>
#include <limits>
#include "ion/base/logging.h"
#include "ion/math/range.h"
Include dependency graph for uniform.cc:

Go to the source code of this file.

Namespaces

 ion
 Copyright 2016 Google Inc.
 
 ion::gfx
 

Macros

#define CHECK_UNIFORMS_EQUAL(type)
 
#define CHECK_VECTOR_UNIFORMS_EQUAL(type)
 

Functions

template<>
ION_API Uniform::ValueType ion::gfx::Uniform::GetTypeByValue< math::VectorBase2f > ()
 
template<>
ION_API Uniform::ValueType ion::gfx::Uniform::GetTypeByValue< math::VectorBase3f > ()
 
template<>
ION_API Uniform::ValueType ion::gfx::Uniform::GetTypeByValue< math::VectorBase4f > ()
 
template<>
ION_API Uniform::ValueType ion::gfx::Uniform::GetTypeByValue< math::VectorBase2i > ()
 
template<>
ION_API Uniform::ValueType ion::gfx::Uniform::GetTypeByValue< math::VectorBase3i > ()
 
template<>
ION_API Uniform::ValueType ion::gfx::Uniform::GetTypeByValue< math::VectorBase4i > ()
 
template<>
ION_API Uniform::ValueType ion::gfx::Uniform::GetTypeByValue< math::VectorBase2ui > ()
 
template<>
ION_API Uniform::ValueType ion::gfx::Uniform::GetTypeByValue< math::VectorBase3ui > ()
 
template<>
ION_API Uniform::ValueType ion::gfx::Uniform::GetTypeByValue< math::VectorBase4ui > ()
 
template<>
ION_API Uniform::ValueType ion::gfx::Uniform::GetTypeByValue< math::Matrix2f > ()
 
template<>
ION_API Uniform::ValueType ion::gfx::Uniform::GetTypeByValue< math::Matrix3f > ()
 
template<>
ION_API Uniform::ValueType ion::gfx::Uniform::GetTypeByValue< math::Matrix4f > ()
 

Macro Definition Documentation

#define CHECK_UNIFORMS_EQUAL (   type)
Value:
if (IsArrayOf<type>()) \
equal = AreUniformArraysEqual<type>(*this, other); \
else \
equal = GetValue<type>() == other.GetValue<type>();
std::string type
Definition: printer.cc:353

Referenced by ion::gfx::Uniform::operator==().

#define CHECK_VECTOR_UNIFORMS_EQUAL (   type)
Value:
if (IsArrayOf<type>()) \
equal = AreUniformVectorArraysEqual<type>(*this, other); \
else \
equal = AreVectorUniformsEqual<type>(*this, other);

Referenced by ion::gfx::Uniform::operator==().