We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d1666d4 + f6725ea commit 9f0713cCopy full SHA for 9f0713c
include/nbl/builtin/hlsl/cpp_compat/intrinsics.hlsl
@@ -206,6 +206,17 @@ inline FloatingPoint rsqrt(FloatingPoint x)
206
#endif
207
}
208
209
+template<typename Integer>
210
+inline Integer bitReverse(Integer base)
211
+{
212
+#ifdef __HLSL_VERSION
213
+ return spirv::bitReverse(x);
214
+#else
215
+ return glm::bitfieldReverse(x);
216
+#endif
217
+}
218
+
219
220
221
222
0 commit comments