summaryrefslogtreecommitdiff
path: root/tests/bugs/vk-structured-buffer-load.hlsl
diff options
context:
space:
mode:
authorRobert Stepinski <rob.stepinski@gmail.com>2019-05-01 12:33:50 -0400
committerTim Foley <tfoleyNV@users.noreply.github.com>2019-05-01 09:33:50 -0700
commit88a3f6476c37f3245de6d607d8055879f8892ee4 (patch)
treea0fbe01fae015014a4b7e17305ff9d0a451d0f55 /tests/bugs/vk-structured-buffer-load.hlsl
parent4880789e3003441732cca4471091563f36531635 (diff)
Fix bitwise And & Or for scalar bool (#960)
* Convert bitwise Or & And to logical operations on scalar bools * Test bitwise operations on scalar bools
Diffstat (limited to 'tests/bugs/vk-structured-buffer-load.hlsl')
-rw-r--r--tests/bugs/vk-structured-buffer-load.hlsl2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/bugs/vk-structured-buffer-load.hlsl b/tests/bugs/vk-structured-buffer-load.hlsl
index a5f518f93..bd5d16882 100644
--- a/tests/bugs/vk-structured-buffer-load.hlsl
+++ b/tests/bugs/vk-structured-buffer-load.hlsl
@@ -28,6 +28,8 @@ void HitMain(inout RayHitInfoPacked RayData, BuiltInTriangleIntersectionAttribut
if (use_rcp)
RayData.PackedHitInfoA.y = rcp(offsfloat);
+ else if ((use_rcp > 0) & (offsfloat == 0.0))
+ RayData.PackedHitInfoA.y = rsqrt(offsfloat + 1.0);
else
RayData.PackedHitInfoA.y = rsqrt(offsfloat);
}