From 727c7d2b824913b3ae263243421ea79ca4940eb8 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 9 Mar 2022 11:32:23 -0800 Subject: 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 --- source/core/slang-dictionary.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source') 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); -- cgit v1.2.3