image: stride returns a vector
This commit is contained in:
parent
c267678d92
commit
0899c16557
@ -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;
|
||||||
|
@ -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 };
|
||||||
|
Loading…
Reference in New Issue
Block a user