diff options
| author | skallweitNV <64953474+skallweitNV@users.noreply.github.com> | 2024-01-09 18:14:13 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-09 09:14:13 -0800 |
| commit | 69f3d7917d66c370ff87832dbbe2d05c5795d5ce (patch) | |
| tree | 8aadecc8c9182972b5210507af45fd7a9fc75634 /source | |
| parent | b570ad4b90fc9eb01d9b11f1c21314f3521c0bdf (diff) | |
Add compiler settings to shader cache key (#3439)
Diffstat (limited to 'source')
| -rw-r--r-- | source/slang/slang.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp index 4921c9a7d..7bc73fd2c 100644 --- a/source/slang/slang.cpp +++ b/source/slang/slang.cpp @@ -1420,6 +1420,12 @@ void Linkage::buildHash(DigestBuilder<SHA1>& builder, SlangInt targetIndex) builder.append(defVal); } + // Add compiler settings to hash + builder.append(defaultMatrixLayoutMode); + builder.append(debugInfoLevel); + builder.append(debugInfoFormat); + builder.append(optimizationLevel); + // Add the target specified by targetIndex auto targetReq = targets[targetIndex]; builder.append(targetReq->getTarget()); |
