chore: remove unused pixel format

This commit is contained in:
Nomango 2023-09-26 12:34:19 +08:00
parent 3c9943b4ac
commit 0c4453270a
2 changed files with 0 additions and 7 deletions

View File

@ -41,15 +41,9 @@ inline DXGI_FORMAT ConvertPixelFormat(PixelFormat format, UINT32& pitch)
{
switch (format)
{
//case PixelFormat::Bpp32RGB:
// pitch = 4;
// return DXGI_FORMAT_R8G8B8X8_UNORM;
case PixelFormat::Bpp32RGBA:
pitch = 4;
return DXGI_FORMAT_R8G8B8A8_UNORM;
case PixelFormat::Bpp32BGR:
pitch = 4;
return DXGI_FORMAT_B8G8R8X8_UNORM;
case PixelFormat::Bpp32BGRA:
pitch = 4;
return DXGI_FORMAT_B8G8R8A8_UNORM;

View File

@ -55,7 +55,6 @@ typedef math::Vec2T<uint32_t> PixelSize;
enum class PixelFormat
{
Bpp32RGBA,
Bpp32BGR,
Bpp32BGRA,
};