diff options
Diffstat (limited to 'source/compiler-core/slang-artifact-helper.cpp')
| -rw-r--r-- | source/compiler-core/slang-artifact-helper.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/compiler-core/slang-artifact-helper.cpp b/source/compiler-core/slang-artifact-helper.cpp index ce6fab7d9..39e81b668 100644 --- a/source/compiler-core/slang-artifact-helper.cpp +++ b/source/compiler-core/slang-artifact-helper.cpp @@ -5,6 +5,7 @@ #include "slang-artifact-representation-impl.h" #include "slang-artifact-desc-util.h" +#include "slang-artifact-util.h" #include "../core/slang-castable-list-impl.h" @@ -14,7 +15,6 @@ namespace Slang { - /* !!!!!!!!!!!!!!!!!!!!!!!!!!!!! DefaultArtifactHelper !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */ /* static */DefaultArtifactHelper DefaultArtifactHelper::g_singleton; @@ -121,4 +121,9 @@ ArtifactDesc DefaultArtifactHelper::makeDescFromCompileTarget(SlangCompileTarget return ArtifactDescUtil::makeDescFromCompileTarget(target); } +void DefaultArtifactHelper::getCastable(ISlangUnknown* unk, ICastable** outCastable) +{ + *outCastable = CastableUtil::getCastable(unk).detach(); +} + } // namespace Slang |
