Replaced per-sample validation define with global define in base class

Toggling validation via command line arguments is the preferred way anyway
Define was also added as a CMake option
This commit is contained in:
Sascha Willems 2023-12-30 13:15:37 +01:00
parent a04a506353
commit d0211d1f14
86 changed files with 90 additions and 205 deletions

View file

@ -9,8 +9,6 @@
#include "vulkanexamplebase.h"
#define VERTEX_BUFFER_BIND_ID 0
#define ENABLE_VALIDATION false
// Vertex layout for this example
struct Vertex {
float pos[3];
@ -168,7 +166,7 @@ public:
VkDescriptorSet descriptorSet;
VkDescriptorSetLayout descriptorSetLayout;
VulkanExample() : VulkanExampleBase(ENABLE_VALIDATION)
VulkanExample() : VulkanExampleBase()
{
title = "3D textures";
camera.type = Camera::CameraType::lookat;