implement getting image size without reading the whole image

This commit is contained in:
ohyzha
2024-10-07 17:18:30 +03:00
parent c00e8a69e2
commit a4e716006a
6 changed files with 42 additions and 1 deletions

View File

@@ -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);
}
}