HLSL: Stop flattening non-IO structs containing opaques.
This makes struct returns from functions work, but breaks structs containing arrays, due to limitations in subsequent transforms in spirv-opt. This is expected to be fixed soon.
This commit is contained in:
@@ -1160,7 +1160,7 @@ bool HlslParseContext::shouldFlatten(const TType& type, TStorageQualifier qualif
|
||||
return (type.isArray() && intermediate.getFlattenUniformArrays() && topLevel) ||
|
||||
(type.isStruct() && type.containsOpaque());
|
||||
default:
|
||||
return type.isStruct() && type.containsOpaque();
|
||||
return false;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user