From e80a063fc55f06a0dd4320022318d3f89ada2bbb Mon Sep 17 00:00:00 2001 From: Sascha Willems Date: Sat, 24 Dec 2022 15:26:48 +0100 Subject: [PATCH] Fixed specialization constant type --- examples/variablerateshading/variablerateshading.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/variablerateshading/variablerateshading.cpp b/examples/variablerateshading/variablerateshading.cpp index 0d0cc209..f5c3592e 100644 --- a/examples/variablerateshading/variablerateshading.cpp +++ b/examples/variablerateshading/variablerateshading.cpp @@ -1,7 +1,7 @@ /* * Vulkan Example - Variable rate shading * -* Copyright (C) 2020 by Sascha Willems - www.saschawillems.de +* Copyright (C) 2020-2022 by Sascha Willems - www.saschawillems.de * * This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT) */ @@ -326,7 +326,7 @@ void VulkanExample::preparePipelines() // Properties for alpha masked materials will be passed via specialization constants struct SpecializationData { - bool alphaMask; + VkBool32 alphaMask; float alphaMaskCutoff; } specializationData; specializationData.alphaMask = false;