summaryrefslogtreecommitdiff
path: root/source/slang/slang-repro.cpp
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2022-08-24 13:09:07 -0400
committerGitHub <noreply@github.com>2022-08-24 10:09:07 -0700
commit0b808453407f8feef8574cae99afd90771712185 (patch)
tree01698f8a4354d836205731762619e5b4205d31e7 /source/slang/slang-repro.cpp
parentf5755019246504ad4da4614d1e34a00d74970ea7 (diff)
Use enums with backing types in Slang API (#2375)
* #include an absolute path didn't work - because paths were taken to always be relative. * Use enum types and specify backing rather than use typedefs so as to get enum type safety. * Add version of TextureFlavor that uses internal types. Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'source/slang/slang-repro.cpp')
-rw-r--r--source/slang/slang-repro.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-repro.cpp b/source/slang/slang-repro.cpp
index ad1bc25fc..aa4dc92fc 100644
--- a/source/slang/slang-repro.cpp
+++ b/source/slang/slang-repro.cpp
@@ -373,7 +373,7 @@ static String _scrubName(const String& in)
dst->useUnknownImageFormatAsDefault = request->useUnknownImageFormatAsDefault;
dst->obfuscateCode = linkage->m_obfuscateCode;
- dst->defaultMatrixLayoutMode = linkage->defaultMatrixLayoutMode;
+ dst->defaultMatrixLayoutMode = SlangMatrixLayoutMode(linkage->defaultMatrixLayoutMode);
}
// Entry points