mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-13 07:39:22 +00:00
Set up descriptor type properly when serialising in
This commit is contained in:
1 parent
5a68bbf3a7
commit
8a5ee99b42
1 file changed
+4
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user