Don't try to disassemble textures that are declared as struct members

* These are dummy members are not really contained in cbuffers or other structs,
  but dxc emits them anyway.
This commit is contained in:
baldurk
2024-05-27 16:21:10 +01:00
parent b93f23e2fc
commit c0b992f643
@@ -1099,6 +1099,10 @@ static DXBC::CBufferVariableType MakeCBufferVariableType(const TypeInfo &typeInf
if(IsEmptyStruct(t))
return ret;
// textures declared in a struct that becomes a global uniform could end up here, treat it as an empty struct.
if(ret.name.beginsWith("Texture2D<"))
return ret;
auto it = typeInfo.structData.find(t);
if(it == typeInfo.structData.end())