Fixed specialization constant type

This commit is contained in:
Sascha Willems 2022-12-24 15:26:48 +01:00
parent 3d7f4477d8
commit e80a063fc5

View file

@ -1,7 +1,7 @@
/* /*
* Vulkan Example - Variable rate shading * 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) * 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 // Properties for alpha masked materials will be passed via specialization constants
struct SpecializationData { struct SpecializationData {
bool alphaMask; VkBool32 alphaMask;
float alphaMaskCutoff; float alphaMaskCutoff;
} specializationData; } specializationData;
specializationData.alphaMask = false; specializationData.alphaMask = false;