rhi: Fix offscreen manual test's Vulkan init
Change-Id: Iaf7da78fd0c1c1265b05bfd4c7ced5d94ae963fe Reviewed-by: Andy Nichols <andy.nichols@qt.io> (cherry picked from commit 1645ce9a4aa39e43d4569eaa7f63225c5116fea4) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
0f1929837a
commit
c31184643b
@ -129,6 +129,7 @@ int main(int argc, char **argv)
|
|||||||
if (graphicsApi == Vulkan) {
|
if (graphicsApi == Vulkan) {
|
||||||
QLoggingCategory::setFilterRules(QStringLiteral("qt.vulkan=true"));
|
QLoggingCategory::setFilterRules(QStringLiteral("qt.vulkan=true"));
|
||||||
inst.setLayers({ "VK_LAYER_KHRONOS_validation" });
|
inst.setLayers({ "VK_LAYER_KHRONOS_validation" });
|
||||||
|
inst.setExtensions(QRhiVulkanInitParams::preferredInstanceExtensions());
|
||||||
if (inst.create()) {
|
if (inst.create()) {
|
||||||
QRhiVulkanInitParams params;
|
QRhiVulkanInitParams params;
|
||||||
params.inst = &inst;
|
params.inst = &inst;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user