mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-22 20:43:09 +00:00
Add support for exporting RG8 dds files.
This commit is contained in:
parent
f54fdf9010
commit
7e2ab15d19
1 changed files with 10 additions and 0 deletions
|
@ -1220,6 +1220,16 @@ namespace Toolbox.Library
|
|||
pixelInternalFormat = PixelInternalFormat.SrgbAlpha;
|
||||
pixelFormat = OpenTK.Graphics.OpenGL.PixelFormat.Rgba;
|
||||
break;
|
||||
case DXGI_FORMAT.DXGI_FORMAT_R8G8_UNORM:
|
||||
header.ddspf.flags = (uint)(DDPF.RGB | DDPF.ALPHAPIXELS);
|
||||
header.ddspf.RGBBitCount = 24;
|
||||
header.ddspf.RBitMask = (uint)R8G8B8_MASKS[0];
|
||||
header.ddspf.GBitMask = (uint)R8G8B8_MASKS[1];
|
||||
header.ddspf.BBitMask = (uint)R8G8B8_MASKS[2];
|
||||
header.ddspf.ABitMask = (uint)R8G8B8_MASKS[3];
|
||||
pixelInternalFormat = PixelInternalFormat.SrgbAlpha;
|
||||
pixelFormat = OpenTK.Graphics.OpenGL.PixelFormat.Rgba;
|
||||
break;
|
||||
case DXGI_FORMAT.DXGI_FORMAT_BC1_UNORM_SRGB:
|
||||
case DXGI_FORMAT.DXGI_FORMAT_BC1_UNORM:
|
||||
header.ddspf.flags = (uint)DDPF.FOURCC;
|
||||
|
|
Loading…
Reference in a new issue