Fix BC5S dds importing.
This commit is contained in:
parent
c8fa10a791
commit
c98162622f
Binary file not shown.
Binary file not shown.
@ -166,6 +166,7 @@ namespace Switch_Toolbox.Library
|
|||||||
case FOURCC_ATI1:
|
case FOURCC_ATI1:
|
||||||
case FOURCC_ATI2:
|
case FOURCC_ATI2:
|
||||||
case FOURCC_BC5U:
|
case FOURCC_BC5U:
|
||||||
|
case FOURCC_BC5S:
|
||||||
return true;
|
return true;
|
||||||
default:
|
default:
|
||||||
return false;
|
return false;
|
||||||
@ -193,6 +194,7 @@ namespace Switch_Toolbox.Library
|
|||||||
return 0x8;
|
return 0x8;
|
||||||
case FOURCC_ATI2:
|
case FOURCC_ATI2:
|
||||||
case FOURCC_BC5U:
|
case FOURCC_BC5U:
|
||||||
|
case FOURCC_BC5S:
|
||||||
return 0x10;
|
return 0x10;
|
||||||
default:
|
default:
|
||||||
return 0;
|
return 0;
|
||||||
@ -720,6 +722,9 @@ namespace Switch_Toolbox.Library
|
|||||||
return TEX_FORMAT.BC5_UNORM;
|
return TEX_FORMAT.BC5_UNORM;
|
||||||
case FOURCC_BC5U:
|
case FOURCC_BC5U:
|
||||||
return TEX_FORMAT.BC5_UNORM;
|
return TEX_FORMAT.BC5_UNORM;
|
||||||
|
case FOURCC_BC5S:
|
||||||
|
return TEX_FORMAT.BC5_SNORM;
|
||||||
|
|
||||||
case FOURCC_RXGB:
|
case FOURCC_RXGB:
|
||||||
return TEX_FORMAT.R8G8B8A8_UNORM;
|
return TEX_FORMAT.R8G8B8A8_UNORM;
|
||||||
default:
|
default:
|
||||||
@ -826,6 +831,7 @@ namespace Switch_Toolbox.Library
|
|||||||
case FOURCC_BC4U:
|
case FOURCC_BC4U:
|
||||||
case FOURCC_ATI2:
|
case FOURCC_ATI2:
|
||||||
case FOURCC_BC5U:
|
case FOURCC_BC5U:
|
||||||
|
case FOURCC_BC5S:
|
||||||
return true;
|
return true;
|
||||||
default:
|
default:
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user