diff options
| author | Yong He <yonghe@outlook.com> | 2022-03-09 11:32:23 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-09 11:32:23 -0800 |
| commit | 727c7d2b824913b3ae263243421ea79ca4940eb8 (patch) | |
| tree | 38ef191600a8a49650da9b7d01c2bf8f70594369 /source/core | |
| parent | dcb434a5fe801d42d1b5f385fd27d0c500687647 (diff) | |
gfx: restructure render-d3d12.cpp (#2154)
* Vulkan: deferred shader compilation and pipeline creation.
* Fix 32bit build.
* gfx: restructure the code in render-d3d12.cpp
* Move `Submitter`.
* Fix.
* merge with master.
* Revert dictionary change in previous PR.
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/core')
| -rw-r--r-- | source/core/slang-dictionary.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/core/slang-dictionary.h b/source/core/slang-dictionary.h index 6a8d03101..eef7d6908 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); |
