chore: remove unused pixel format
This commit is contained in:
parent
3c9943b4ac
commit
0c4453270a
|
|
@ -41,15 +41,9 @@ inline DXGI_FORMAT ConvertPixelFormat(PixelFormat format, UINT32& pitch)
|
||||||
{
|
{
|
||||||
switch (format)
|
switch (format)
|
||||||
{
|
{
|
||||||
//case PixelFormat::Bpp32RGB:
|
|
||||||
// pitch = 4;
|
|
||||||
// return DXGI_FORMAT_R8G8B8X8_UNORM;
|
|
||||||
case PixelFormat::Bpp32RGBA:
|
case PixelFormat::Bpp32RGBA:
|
||||||
pitch = 4;
|
pitch = 4;
|
||||||
return DXGI_FORMAT_R8G8B8A8_UNORM;
|
return DXGI_FORMAT_R8G8B8A8_UNORM;
|
||||||
case PixelFormat::Bpp32BGR:
|
|
||||||
pitch = 4;
|
|
||||||
return DXGI_FORMAT_B8G8R8X8_UNORM;
|
|
||||||
case PixelFormat::Bpp32BGRA:
|
case PixelFormat::Bpp32BGRA:
|
||||||
pitch = 4;
|
pitch = 4;
|
||||||
return DXGI_FORMAT_B8G8R8A8_UNORM;
|
return DXGI_FORMAT_B8G8R8A8_UNORM;
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,6 @@ typedef math::Vec2T<uint32_t> PixelSize;
|
||||||
enum class PixelFormat
|
enum class PixelFormat
|
||||||
{
|
{
|
||||||
Bpp32RGBA,
|
Bpp32RGBA,
|
||||||
Bpp32BGR,
|
|
||||||
Bpp32BGRA,
|
Bpp32BGRA,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue