dx11: uwp doesn't need texture conversions

This commit is contained in:
Flyinghead 2022-01-16 10:37:55 +01:00
parent 8bb0bd05f9
commit 62ec3546d6
2 changed files with 4 additions and 0 deletions

View File

@ -109,6 +109,7 @@ void DX11Texture::UploadToGPU(int width, int height, u8* temp_tex_buffer, bool m
theDX11Context.getDeviceContext()->GenerateMips(textureView);
}
#ifndef TARGET_UWP
bool DX11Texture::Force32BitTexture(TextureType type) const
{
if (IsWindows8OrGreater())
@ -117,6 +118,7 @@ bool DX11Texture::Force32BitTexture(TextureType type) const
// are not supported on Windows 7
return type == TextureType::_565 || type == TextureType::_5551 || type == TextureType::_4444;
}
#endif
bool DX11Texture::Delete()
{

View File

@ -33,7 +33,9 @@ public:
bool mipmapsIncluded = false) override;
bool Delete() override;
void loadCustomTexture();
#ifndef TARGET_UWP
bool Force32BitTexture(TextureType type) const override;
#endif
};
class DX11TextureCache final : public BaseTextureCache<DX11Texture>