data-format (#94)

Co-authored-by: Metehan Tuncbilek <mtuncbilek95@gmail.com>
Reviewed-on: https://git.madvoxel.net/OpenVulkano/OpenVulkano/pulls/94
Reviewed-by: Georg Hagen <georg.hagen@madvoxel.com>
Co-authored-by: metehan.tuncbilek <metehan.tuncbilek@madvoxel.com>
Co-committed-by: metehan.tuncbilek <metehan.tuncbilek@madvoxel.com>
This commit is contained in:
metehan.tuncbilek
2024-08-06 13:18:09 +02:00
committed by Georg Hagen
parent e93ccbe89a
commit 6172f4e215
3 changed files with 208 additions and 17 deletions

View File

@@ -373,6 +373,10 @@ namespace OpenVulkano
uint32_t GetBytesPerPixel();
bool IsBlockCompressed();
size_t CalculatedSize(uint32_t& width, uint32_t& height);
static DataFormat GetFromName(std::string_view name);
static DataFormat GetFromMetalPixelFormat(int formatId);