From 240727db40552180446c1f14acc371f690db10e4 Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 7 Mar 2024 13:19:44 -0800 Subject: Uniformity analysis. (#3704) * Uniformity analysis. * Add [NonUniformReturn] decorations to some hlsl intrinsic functions. --- source/core/slang-uint-set.cpp | 2 +- source/core/slang-uint-set.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'source/core') diff --git a/source/core/slang-uint-set.cpp b/source/core/slang-uint-set.cpp index 02e142706..e973cbc3a 100644 --- a/source/core/slang-uint-set.cpp +++ b/source/core/slang-uint-set.cpp @@ -27,7 +27,7 @@ UIntSet& UIntSet::operator=(const UIntSet& other) return *this; } -HashCode UIntSet::getHashCode() +HashCode UIntSet::getHashCode() const { int rs = 0; for (auto val : m_buffer) diff --git a/source/core/slang-uint-set.h b/source/core/slang-uint-set.h index 4912ae504..0f2165bab 100644 --- a/source/core/slang-uint-set.h +++ b/source/core/slang-uint-set.h @@ -26,7 +26,7 @@ public: UIntSet& operator=(UIntSet&& other); UIntSet& operator=(const UIntSet& other); - HashCode getHashCode(); + HashCode getHashCode() const; /// Return the count of all bits directly represented Int getCount() const { return Int(m_buffer.getCount()) * kElementSize; } -- cgit v1.2.3