summaryrefslogtreecommitdiffstats
path: root/source/compiler-core/slang-fxc-compiler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/compiler-core/slang-fxc-compiler.cpp')
-rw-r--r--source/compiler-core/slang-fxc-compiler.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/source/compiler-core/slang-fxc-compiler.cpp b/source/compiler-core/slang-fxc-compiler.cpp
index 1706f0fb0..a9e916abf 100644
--- a/source/compiler-core/slang-fxc-compiler.cpp
+++ b/source/compiler-core/slang-fxc-compiler.cpp
@@ -180,8 +180,16 @@ static SlangResult _parseDiagnosticLine(SliceAllocator& allocator, const Unowned
return SLANG_OK;
}
-SlangResult FXCDownstreamCompiler::compile(const CompileOptions& options, IArtifact** outArtifact)
+SlangResult FXCDownstreamCompiler::compile(const CompileOptions& inOptions, IArtifact** outArtifact)
{
+ if (!isVersionCompatible(inOptions))
+ {
+ // Not possible to compile with this version of the interface.
+ return SLANG_E_NOT_IMPLEMENTED;
+ }
+
+ CompileOptions options = getCompatibleVersion(&inOptions);
+
// This compiler can only deal with a single source artifact
if (options.sourceArtifacts.count != 1)
{