Fix bc1 dx10 textures
This commit is contained in:
parent
3d63151626
commit
3fb31a0130
@ -101,6 +101,11 @@ namespace FirstPlugin
|
|||||||
|
|
||||||
switch (dds.DX10header.DXGI_Format)
|
switch (dds.DX10header.DXGI_Format)
|
||||||
{
|
{
|
||||||
|
case DDS.DXGI_FORMAT.DXGI_FORMAT_BC1_UNORM:
|
||||||
|
return SurfaceFormat.BC1_UNORM;
|
||||||
|
|
||||||
|
case DDS.DXGI_FORMAT.DXGI_FORMAT_BC1_UNORM_SRGB:
|
||||||
|
return SurfaceFormat.BC1_SRGB
|
||||||
case DDS.DXGI_FORMAT.DXGI_FORMAT_BC4_UNORM:
|
case DDS.DXGI_FORMAT.DXGI_FORMAT_BC4_UNORM:
|
||||||
return SurfaceFormat.BC4_UNORM;
|
return SurfaceFormat.BC4_UNORM;
|
||||||
case DDS.DXGI_FORMAT.DXGI_FORMAT_BC4_SNORM:
|
case DDS.DXGI_FORMAT.DXGI_FORMAT_BC4_SNORM:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user