summaryrefslogtreecommitdiff
path: root/tests/compute
diff options
context:
space:
mode:
Diffstat (limited to 'tests/compute')
-rw-r--r--tests/compute/half-rw-texture-simple.slang2
-rw-r--r--tests/compute/half-texture-simple.slang2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/compute/half-rw-texture-simple.slang b/tests/compute/half-rw-texture-simple.slang
index 8077b36a6..739abfab7 100644
--- a/tests/compute/half-rw-texture-simple.slang
+++ b/tests/compute/half-rw-texture-simple.slang
@@ -25,7 +25,7 @@ RWStructuredBuffer<float> outputBuffer;
[numthreads(4, 1, 1)]
void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
{
- int idx = dispatchThreadID.x;
+ uint idx = dispatchThreadID.x;
float val = 0.0f;
diff --git a/tests/compute/half-texture-simple.slang b/tests/compute/half-texture-simple.slang
index 124755534..5ddd84d64 100644
--- a/tests/compute/half-texture-simple.slang
+++ b/tests/compute/half-texture-simple.slang
@@ -35,7 +35,7 @@ RWStructuredBuffer<float> outputBuffer;
[numthreads(4, 1, 1)]
void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
{
- int idx = dispatchThreadID.x;
+ uint idx = dispatchThreadID.x;
float u = idx * (1.0f / 4);
float val = 0.0f;