Giovanni Mascellani (@giomasce) commented about libs/vkd3d-shader/dxil.c:
}
type->u.struc->elem_types[j] = &sm6->types[type_id];
}
if (record->code == TYPE_CODE_STRUCT_ANON)
{
type->u.struc->name = NULL;
break;
}
type->u.struc->name = struct_name;
struct_name = NULL;
break;
case TYPE_CODE_STRUCT_NAME:
if (!(struct_name = dxil_record_to_string(record)))
Maybe we can `WARN()` is the following record is not a named structure? Or reject the shader outright?