summaryrefslogtreecommitdiffstats
path: root/tests/auto/gui/rhi/qrhi/tst_qrhi.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2022-03-18 12:36:07 +0100
committerLaszlo Agocs <laszlo.agocs@qt.io>2022-03-24 19:19:35 +0100
commite25fc5a19774a0774148f194ebbb4571e730d4c1 (patch)
tree3cabb6445e1fa54d584e6a1c4c6dfb8a25115fc9 /tests/auto/gui/rhi/qrhi/tst_qrhi.cpp
parent1fe5ea3f836c3962a5919a48b46275545e008cf6 (diff)
rhi: d3d11/vulkan: Allow passing in an array range override
Only (straightforwardly) implementable with modern APIs, and only really exists to handle special platform cases, such as when a video framework gives us a D3D texture array with D3D11_BIND_DECODER | D3D11_BIND_SHADER_RESOURCE which is only possible to use as a shader resource if the SRV selects a single array layer. Has no effect on the normal usage of texture arrays, where all array layers are exposed, and it is the shader that selects the layer when sampling or loading via the sampler2DArray. That continues to be the standard way to work with texture arrays. Change-Id: I0a656b605da21f50239b38abb83067e0208c1dbe Reviewed-by: Piotr Srebrny <piotr.srebrny@qt.io> Reviewed-by: Christian Strømme <christian.stromme@qt.io>
Diffstat (limited to 'tests/auto/gui/rhi/qrhi/tst_qrhi.cpp')
-rw-r--r--tests/auto/gui/rhi/qrhi/tst_qrhi.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/auto/gui/rhi/qrhi/tst_qrhi.cpp b/tests/auto/gui/rhi/qrhi/tst_qrhi.cpp
index 4ff02733dc..613ba05323 100644
--- a/tests/auto/gui/rhi/qrhi/tst_qrhi.cpp
+++ b/tests/auto/gui/rhi/qrhi/tst_qrhi.cpp
@@ -402,7 +402,12 @@ void tst_QRhi::create()
QRhi::PipelineCacheDataLoadSave,
QRhi::ImageDataStride,
QRhi::RenderBufferImport,
- QRhi::ThreeDimensionalTextures
+ QRhi::ThreeDimensionalTextures,
+ QRhi::RenderTo3DTextureSlice,
+ QRhi::TextureArrays,
+ QRhi::Tessellation,
+ QRhi::GeometryShader,
+ QRhi::TextureArrayRange
};
for (size_t i = 0; i <sizeof(features) / sizeof(QRhi::Feature); ++i)
rhi->isFeatureSupported(features[i]);