diff options
| author | Yong He <yonghe@outlook.com> | 2022-02-25 20:49:31 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-25 20:49:31 -0800 |
| commit | c31577953d5041c82375c22d847c2eba06106c58 (patch) | |
| tree | bc685a8b63fc13cb85d160ae13df950056ca6e91 /tests/bugs/vk-structured-buffer-load.hlsl.glsl | |
| parent | 8990d270e3a0c01b1f7abbf4f79556c5ef82a096 (diff) | |
Improved SCCP, inlining and resource specialization passes, legalize `ImageSubscript` for GLSL (#2146)
Diffstat (limited to 'tests/bugs/vk-structured-buffer-load.hlsl.glsl')
| -rw-r--r-- | tests/bugs/vk-structured-buffer-load.hlsl.glsl | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/bugs/vk-structured-buffer-load.hlsl.glsl b/tests/bugs/vk-structured-buffer-load.hlsl.glsl index 1c7ec8043..05c8de193 100644 --- a/tests/bugs/vk-structured-buffer-load.hlsl.glsl +++ b/tests/bugs/vk-structured-buffer-load.hlsl.glsl @@ -43,13 +43,12 @@ void main() float HitT_0 = (gl_RayTmaxNV); RayData.PackedHitInfoA_0.x = HitT_0; - const uint use_rcp_0 = uint(0); - float offsfloat_0 = ((gParamBlock_sbuf_0)._data[(int(uint(0)))]); + float offsfloat_0 = ((gParamBlock_sbuf_0)._data[(0)]); - uint use_rcp_1 = use_rcp_0|uint(HitT_0 > 0.00000000000000000000); + uint use_rcp_0 = 0U | uint(HitT_0 > 0.00000000000000000000); - if(bool(use_rcp_1)) + if(bool(use_rcp_0)) { float tmpA = rcp_0(offsfloat_0); @@ -60,7 +59,7 @@ void main() else { - if(use_rcp_1 > uint(0)&&offsfloat_0 == 0.00000000000000000000) + if(use_rcp_0 > 0U&&offsfloat_0 == 0.00000000000000000000) { float tmpB = (inversesqrt((offsfloat_0 + 1.00000000000000000000))); |
