You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Top level variable flattening: construct datavoidHlslParseContext::flatten(const TVariable& variable, bool linkage, bool arrayed)
{
const TType& type = variable.getType();
// If it's a standalone built-in, there is nothing to flattenif (type.isBuiltIn() && !type.isStruct())
return;
auto entry = flattenMap.insert(std::make_pair(variable.getUniqueId(),
TFlattenData(type.getQualifier().layoutBinding,
type.getQualifier().layoutLocation)));
// if flattening arrayed io struct, array each member of dereferenced typeif (arrayed) {
const TType dereferencedType(type, 0); // <--- fetching of first member of structure, without checking for struct sizeflatten(variable, dereferencedType, entry.first->second, variable.getName(), linkage,
type.getQualifier(), type.getArraySizes());
} else {
flatten(variable, type, entry.first->second, variable.getName(), linkage,
type.getQualifier(), nullptr);
}
}
The text was updated successfully, but these errors were encountered:
Found, while working on spirv-cross tessellation shader. This shader is result of cross-compilation of simple glsl shader.
Shader code:
GLSL:
While, tessellation shader without output is not particulary useful kind of shader, but it's valid one (from syntax point of view).
Crash stack:
Context:
The text was updated successfully, but these errors were encountered: