implement getting image size without reading the whole image
This commit is contained in:
@@ -22,4 +22,9 @@ namespace OpenVulkano::Image
|
||||
{
|
||||
return loadData(buffer.data(), static_cast<int>(buffer.size()));
|
||||
}
|
||||
|
||||
bool ImageLoaderPng::GetImageDimensions(const std::string& filename, int& width, int& height)
|
||||
{
|
||||
return GetDimensionsInternal(filename, width, height);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user