Fix: Incorrect assert introduced in recent commit

This commit is contained in:
Jeroen Bakker
2024-11-19 13:59:09 +01:00
parent c4febb68b8
commit a5f8dbe9b5

View File

@@ -286,7 +286,7 @@ void VKShaderInterface::descriptor_set_location_update(
VKImageViewArrayed arrayed)
{
BLI_assert_msg(resource.has_value() ||
ELEM(bind_type, VKBindType::UNIFORM_BUFFER, VKBindType::SAMPLER),
ELEM(bind_type, VKBindType::UNIFORM_BUFFER, VKBindType::INPUT_ATTACHMENT),
"Incorrect parameters, when no resource is given, it must be the uniform buffer "
"for storing push constants or input attachment for subpass inputs.");
BLI_assert_msg(!resource.has_value() || to_bind_type(resource->bind_type) == bind_type,