summaryrefslogtreecommitdiff
path: root/source/slang/slang-emit-cpp.h
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2020-01-06 15:36:11 -0500
committerGitHub <noreply@github.com>2020-01-06 15:36:11 -0500
commit0c87001d7fb9dabaa17f9784e99d7438592d2373 (patch)
tree0cd893463a0734928a45e63850c1fabb8e4d4129 /source/slang/slang-emit-cpp.h
parent79b52bb8ac2a6059f5bbdc17be22725400b74aad (diff)
Fix scoping issue around use of IRTypeSet (#1160)
* WIP use IRTypeSet in CPPSourceEmitter - doesn't work because of a cloning issue, causing a crash on exit. * Fix destruction of module issue for IRTypeSet usage in CPPEmitter. * Fix out definition emitting ordering that was removed. * Disable cuda output test.
Diffstat (limited to 'source/slang/slang-emit-cpp.h')
-rw-r--r--source/slang/slang-emit-cpp.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/source/slang/slang-emit-cpp.h b/source/slang/slang-emit-cpp.h
index 45a9ee35a..784696b08 100644
--- a/source/slang/slang-emit-cpp.h
+++ b/source/slang/slang-emit-cpp.h
@@ -101,7 +101,7 @@ protected:
StringSlicePool::Handle _calcFuncName(const HLSLIntrinsic* specOp);
UnownedStringSlice _getTypeName(IRType* type);
- StringSlicePool::Handle _calcTypeName(IRType* type);
+ //StringSlicePool::Handle _calcTypeName(IRType* type);
SlangResult _calcTypeName(IRType* type, CodeGenTarget target, StringBuilder& out);
@@ -122,9 +122,8 @@ protected:
IRTypeSet m_typeSet;
RefPtr<HLSLIntrinsicOpLookup> m_opLookup;
HLSLIntrinsicSet m_intrinsicSet;
-
- Dictionary<IRType*, bool> m_typeEmittedMap;
- Dictionary<const HLSLIntrinsic*, bool> m_intrinsicEmittedMap;
+
+ HashSet<const HLSLIntrinsic*> m_intrinsicEmitted;
StringSlicePool m_slicePool;