Set up descriptor type properly when serialising in

This commit is contained in:
baldurk committed 2016-07-10 18:09:47 +02:00
1 parent 5a68bbf3a7
commit 8a5ee99b42
1 file changed
+4
+4
View File
@@ -118,11 +118,15 @@ void Serialiser::Serialise(const char *name, D3D12Descriptor &el)
}
}
// for sampler types, this will be overwritten when serialising the sampler descriptor
el.nonsamp.type = type;
switch(type)
{
case D3D12Descriptor::TypeSampler:
{
Serialise("Descriptor", el.samp.desc);
RDCASSERTEQUAL(el.GetType(), D3D12Descriptor::TypeSampler);
break;
}
case D3D12Descriptor::TypeCBV: