mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-13 19:17:12 +00:00
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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user