summaryrefslogtreecommitdiffstats
path: root/tests/compute
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-06-01 13:53:31 -0700
committerGitHub <noreply@github.com>2023-06-01 13:53:31 -0700
commit16cd361dd67471bcc355d1b3b72b0b022518088f (patch)
treefa3a7d5b77ccf09f9340b78e66610ba8b751c855 /tests/compute
parenta7ed48b2e6da9bf952aa11ec0d57acf9688bbb0e (diff)
Be lenient on same-size unsigend->signed conversion. (#2913)
* Be lenient on same-size unsigend->signed conversion. * Fix tests. * Use 250. * wip * Fix. * Fix tests. * Fix. --------- Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tests/compute')
-rw-r--r--tests/compute/unbounded-array-of-array-syntax.slang.glsl2
-rw-r--r--tests/compute/unbounded-array-of-array-syntax.slang.hlsl2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/compute/unbounded-array-of-array-syntax.slang.glsl b/tests/compute/unbounded-array-of-array-syntax.slang.glsl
index b71b0cd7c..f30012cc3 100644
--- a/tests/compute/unbounded-array-of-array-syntax.slang.glsl
+++ b/tests/compute/unbounded-array-of-array-syntax.slang.glsl
@@ -24,7 +24,7 @@ void main()
(bufferCount_0) = (g_aoa_0[_S3])._data.length(); (bufferStride_0) = 0;
int innerIndex_1;
- if(uint(innerIndex_0) >= bufferCount_0)
+ if(innerIndex_0 >= int(bufferCount_0))
{
innerIndex_1 = int(bufferCount_0 - 1U);
}
diff --git a/tests/compute/unbounded-array-of-array-syntax.slang.hlsl b/tests/compute/unbounded-array-of-array-syntax.slang.hlsl
index 3fd9ee8ea..5549c7dc3 100644
--- a/tests/compute/unbounded-array-of-array-syntax.slang.hlsl
+++ b/tests/compute/unbounded-array-of-array-syntax.slang.hlsl
@@ -24,7 +24,7 @@ void computeMain(vector<uint,3> dispatchThreadID_0 : SV_DISPATCHTHREADID)
uint bufferCount_0 = _S1;
- if((uint) innerIndex_1 >= bufferCount_0)
+ if(innerIndex_1 >= (int)bufferCount_0)
{
innerIndex_0 = (int) (bufferCount_0 - (uint) 1);
}