summaryrefslogtreecommitdiffstats
path: root/src/render/Qt3DSRenderContext.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/Qt3DSRenderContext.h')
-rw-r--r--src/render/Qt3DSRenderContext.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/render/Qt3DSRenderContext.h b/src/render/Qt3DSRenderContext.h
index b454a3f..e729ad1 100644
--- a/src/render/Qt3DSRenderContext.h
+++ b/src/render/Qt3DSRenderContext.h
@@ -132,7 +132,7 @@ namespace render {
virtual QT3DSU32 GetStencilBits() const = 0;
virtual bool
GetRenderBackendCap(NVRenderBackend::NVRenderBackendCaps::Enum inCap) const = 0;
- virtual bool AreDXTImagesSupported() const = 0;
+ virtual bool AreCompressedTexturesSupported() const = 0;
virtual bool IsDepthStencilSupported() const = 0;
virtual bool IsFpRenderTargetSupported() const = 0;
virtual bool IsTessellationSupported() const = 0;
@@ -693,11 +693,16 @@ namespace render {
return GetRenderBackendCap(NVRenderBackend::NVRenderBackendCaps::ConstantBuffer);
}
- bool AreDXTImagesSupported() const override
+ bool AreCompressedTexturesSupported() const override
{
- return GetRenderBackendCap(NVRenderBackend::NVRenderBackendCaps::DxtImages);
+ return (GetRenderBackendCap(NVRenderBackend::NVRenderBackendCaps::DxtImages)
+ || GetRenderBackendCap(
+ NVRenderBackend::NVRenderBackendCaps::CompressedTextureEtc1)
+ || GetRenderBackendCap(
+ NVRenderBackend::NVRenderBackendCaps::CompressedTextureEtc2)
+ || GetRenderBackendCap(
+ NVRenderBackend::NVRenderBackendCaps::CompressedTextureAstc));
}
-
bool IsDepthStencilSupported() const override
{
return GetRenderBackendCap(NVRenderBackend::NVRenderBackendCaps::DepthStencilTexture);