Ray tracing samples can now also use the UI overlay

General cleanup, changed default settings.overlay value
This commit is contained in:
Sascha Willems 2021-08-28 12:59:10 +02:00
parent d0f0e1698e
commit 3b1ff1eece
73 changed files with 129 additions and 87 deletions

View file

@ -1,7 +1,7 @@
/*
* Vulkan Example - Hardware accelerated ray tracing callable shaders example
*
* Dynamically calls different shaders based on the geoemtry id in the closest hit shader
* Dynamically calls different shaders based on the geometry id in the closest hit shader
*
* Relevant code parts are marked with [POI]
*
@ -47,7 +47,6 @@ public:
VulkanExample() : VulkanRaytracingSample()
{
title = "Ray tracing callable shaders";
settings.overlay = false;
timerSpeed *= 0.25f;
camera.type = Camera::CameraType::lookat;
camera.setPerspective(60.0f, (float)width / (float)height, 0.1f, 512.0f);
@ -581,6 +580,8 @@ public:
VK_IMAGE_LAYOUT_GENERAL,
subresourceRange);
drawUI(drawCmdBuffers[i], frameBuffers[i]);
VK_CHECK_RESULT(vkEndCommandBuffer(drawCmdBuffers[i]));
}
}