Skip to content

Commit

Permalink
revert a test change
Browse files Browse the repository at this point in the history
  • Loading branch information
kaizhangNV committed Jan 23, 2025
1 parent d508623 commit c5b43c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions tests/compute/init-list-defaults.slang
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ struct Test

int test(int inVal)
{
// Note: int4 is not a C-Style struct, so {4, 5, 6,} is not a valid initializer list for it.
Test myArray[4] = {
{ int4(1), { 2, 3} },
{ {4, 5, 6, 0}, { 7, } },
{ {4, 5, 6, }, { 7, } },
};

return myArray[0].b[inVal]
Expand All @@ -36,4 +35,4 @@ void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
int outVal = test(inVal);

outputBuffer[tid] = outVal;
}
}
4 changes: 2 additions & 2 deletions tests/hlsl-intrinsic/vector-double-reduced-intrinsic.slang
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
FloatVector f = FloatVector(0.1f, vf, vf + 0.2f);

// Operate over all values
FloatVector ft = {0.0f};
FloatVector ft = {};

// TODO(JS):
// fmod - disabled not available on D3D for double
Expand Down Expand Up @@ -71,4 +71,4 @@ void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
ft += clamp(f, 0.1l, 0.3l);

outputBuffer[idx] = vector<Float, 4>(ft, 0);
}
}

0 comments on commit c5b43c5

Please sign in to comment.