/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/Engine/Texture/Image/Formats/ImageFormatMappings.h
20 строк
776 B
Ingrater
Format everything using clang-format (#267)
22 июл 2020, 21:23
Не верифицирован
22 июл 2020, 21:23
878ce7e
Код
Авторство
О чём код?
#pragma once #include <Texture/Image/ImageFormat.h> /// \brief Helper class containing methods to convert between ezImageFormat::Enum and platform-specific image formats. class EZ_TEXTURE_DLL ezImageFormatMappings { public: /// \brief Maps an ezImageFormat::Enum to an equivalent Direct3D DXGI_FORMAT. static ezUInt32 ToDxgiFormat(ezImageFormat::Enum format); /// \brief Maps a Direct3D DXGI_FORMAT to an equivalent ezImageFormat::Enum. static ezImageFormat::Enum FromDxgiFormat(ezUInt32 uiDxgiFormat); /// \brief Maps an ezImageFormat::Enum to an equivalent FourCC code. static ezUInt32 ToFourCc(ezImageFormat::Enum format); /// \brief Maps a FourCC code to an equivalent ezImageFormat::Enum. static ezImageFormat::Enum FromFourCc(ezUInt32 uiFourCc); };