Add stencil format require toggle

Fixes #1031
This commit is contained in:
Sascha Willems 2023-05-09 18:03:51 +02:00
parent 0afa517a68
commit 3c9aca3fcb
5 changed files with 48 additions and 15 deletions

View file

@ -1,7 +1,7 @@
/*
* Vulkan Example - Rendering outlines using the stencil buffer
*
* Copyright (C) 2016-2017 by Sascha Willems - www.saschawillems.de
* Copyright (C) 2016-2023 by Sascha Willems - www.saschawillems.de
*
* This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)
*/
@ -43,6 +43,8 @@ public:
camera.setPerspective(60.0f, (float)width / (float)height, 0.1f, 512.0f);
camera.setRotation(glm::vec3(2.5f, -35.0f, 0.0f));
camera.setTranslation(glm::vec3(0.0f, 0.0f, -2.0f));
// This samples requires a format that supports depth AND stencil, which will be handled by the base class
requiresStencil = true;
}
~VulkanExample()