Refactor code for generating structure strings to a separate function.

This could fix a potential regression, which might define structs multiple times in generated HLSL.

TRAC #23271

Signed-off-by: Nicolas Capens
Signed-off-by: Shannon Woods
Authored-by: Jamie Madill
diff --git a/src/compiler/OutputHLSL.h b/src/compiler/OutputHLSL.h
index 6a409b4..6fa8bca 100644
--- a/src/compiler/OutputHLSL.h
+++ b/src/compiler/OutputHLSL.h
@@ -40,6 +40,8 @@
     TString typeString(const TType &type);
     TString textureString(const TType &type);
     TString interpolationString(TQualifier qualifier);
+    TString structureString(const TType &structType, bool useHLSLRowMajorPacking);
+    TString structureTypeName(const TType &structType, bool useHLSLRowMajorPacking);
     static TString qualifierString(TQualifier qualifier);
     static TString arrayString(const TType &type);
     static TString initializer(const TType &type);