From f024d7299831c0312877e315e8d78b920aaafbaf Mon Sep 17 00:00:00 2001 From: Yong He Date: Mon, 13 Dec 2021 12:40:52 -0800 Subject: Fixes to `uploadTextureData`. (#2058) * Fixes to `uploadTextureData`. * Fix, Co-authored-by: Yong He --- source/core/slang-math.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/core') diff --git a/source/core/slang-math.h b/source/core/slang-math.h index 3d229ded8..231e59007 100644 --- a/source/core/slang-math.h +++ b/source/core/slang-math.h @@ -163,6 +163,11 @@ namespace Slang } } + template + static T getLowestBit(T val) + { + return val & (-val); + } }; inline int FloatAsInt(float val) { -- cgit v1.2.3