Don't set immutable samplers for initial state SAMPLER descriptor writes

This commit is contained in:
baldurk
2019-12-10 19:39:29 +00:00
parent 67082e037d
commit ec5d1ae39e
+3 -1
View File
@@ -840,7 +840,9 @@ bool WrappedVulkan::Serialise_InitialState(SerialiserType &ser, ResourceId id,
dstImage[d].imageLayout = src[d].imageInfo.imageLayout;
}
if(immutableSamplers)
// if we're not updating a SAMPLER descriptor fill in immutable samplers so that our
// validity checking doesn't have to look them up.
if(immutableSamplers && writes[bind].descriptorType != VK_DESCRIPTOR_TYPE_SAMPLER)
{
for(uint32_t d = 0; d < descriptorCount; d++)
dstImage[d].sampler =