summaryrefslogtreecommitdiffstats
path: root/source/core
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-03-08 14:34:53 -0800
committerGitHub <noreply@github.com>2022-03-08 14:34:53 -0800
commitdcb434a5fe801d42d1b5f385fd27d0c500687647 (patch)
tree600d63ccce42e0ca3b5c63df23013044c4cea96c /source/core
parent771f29435d664f7344bc5596056146af5d64d352 (diff)
GFX Vulkan: deferred shader compilation and pipeline creation. (#2153)
* Vulkan: deferred shader compilation and pipeline creation. * Fix 32bit build. Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/core')
-rw-r--r--source/core/slang-dictionary.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/core/slang-dictionary.h b/source/core/slang-dictionary.h
index eef7d6908..6a8d03101 100644
--- a/source/core/slang-dictionary.h
+++ b/source/core/slang-dictionary.h
@@ -167,7 +167,7 @@ namespace Slang
return FindPositionResult(hashPos, -1);
}
numProbes++;
- hashPos = (hashPos + GetProbeOffset(numProbes)) & bucketSizeMinusOne;
+ hashPos = (hashPos + GetProbeOffset(numProbes)) % bucketSizeMinusOne;
}
if (insertPos != -1)
return FindPositionResult(-1, insertPos);
@@ -738,7 +738,7 @@ namespace Slang
return FindPositionResult(hashPos, -1);
}
numProbes++;
- hashPos = (hashPos + GetProbeOffset(numProbes)) & bucketSizeMinusOne;
+ hashPos = (hashPos + GetProbeOffset(numProbes)) % bucketSizeMinusOne;
}
if (insertPos != -1)
return FindPositionResult(-1, insertPos);