image: stride returns a vector

This commit is contained in:
Danny Robson 2015-07-23 21:17:57 +10:00
parent c267678d92
commit 0899c16557
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ namespace util { namespace image {
//--------------------------------------------------------------------- //---------------------------------------------------------------------
constexpr extent2u extent (void) const; constexpr extent2u extent (void) const;
constexpr extent2u stride (void) const; constexpr vector2u stride (void) const;
constexpr size_t size (void) const; // elements allocated constexpr size_t size (void) const; // elements allocated
constexpr bool is_packed (void) const; constexpr bool is_packed (void) const;

View File

@ -31,7 +31,7 @@ namespace util { namespace image {
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
template <typename T> template <typename T>
constexpr extent2u constexpr vector2u
buffer<T>::stride (void) const buffer<T>::stride (void) const
{ {
return { 1, s }; return { 1, s };