Cleanup: quiet enum mismatch compiler warning

This commit is contained in:
Campbell Barton
2024-11-25 13:20:07 +11:00
parent 63090b7af6
commit ecc17b400b

View File

@@ -74,7 +74,7 @@ void VKDescriptorSetLayouts::update_layout_bindings(const VKDescriptorSetLayoutI
binding.descriptorType = vk_descriptor_type;
binding.pImmutableSamplers = VK_NULL_HANDLE;
binding.stageFlags = vk_descriptor_type == VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT ?
VK_SHADER_STAGE_FRAGMENT_BIT :
VkShaderStageFlags(VK_SHADER_STAGE_FRAGMENT_BIT) :
info.vk_shader_stage_flags;
vk_descriptor_set_layout_bindings_.append(binding);
}