Skip to content

Commit

Permalink
Add the rowStride parameter to the ImageView constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
st0rmbtw committed Jan 23, 2025
1 parent a5441ff commit 804f8a1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions include/LLGL/ImageFlags.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,12 @@ struct ImageView
ImageView(const ImageView&) = default;

//! Constructor to initialize all attributes.
inline ImageView(ImageFormat format, DataType dataType, const void* data, std::size_t dataSize) :
format { format },
dataType { dataType },
data { data },
dataSize { dataSize }
inline ImageView(ImageFormat format, DataType dataType, const void* data, std::size_t dataSize, std::uint32_t rowStride = 0) :
format { format },
dataType { dataType },
data { data },
dataSize { dataSize },
rowStride { rowStride }
{
}

Expand Down

0 comments on commit 804f8a1

Please sign in to comment.