/*============================================================================= Copyright (c) 2011-2015 Bolero MURAKAMI https://github.com/bolero-MURAKAMI/Sprout Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ #ifndef SPROUT_DARKROOM_MATERIALS_CALCULATE_HPP #define SPROUT_DARKROOM_MATERIALS_CALCULATE_HPP #include #include namespace sprout { namespace darkroom { namespace materials { // // calculate_result // template struct calculate_result : public sprout::identity {}; template struct calculate_result : public sprout::darkroom::materials::calculate_result {}; template struct calculate_result : public sprout::darkroom::materials::calculate_result {}; template struct calculate_result : public sprout::darkroom::materials::calculate_result {}; // // calculate // template inline SPROUT_CONSTEXPR typename sprout::darkroom::materials::calculate_result::type calculate(Image const& image, Unit const& u, Unit const& v) { return image(u, v); } } // namespace materials } // namespace darkroom } // namespace sprout #endif // #ifndef SPROUT_DARKROOM_MATERIALS_CALCULATE_HPP