Skip to content

Commit a2edb1d

Browse files
committed
adjust tests to comply with Metal codegen changes
Signed-off-by: Morteza <[email protected]>
1 parent 09826a9 commit a2edb1d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/cpu/GpuShader_tests.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,10 +1032,10 @@ ocioOCIOMain(
10321032
// Declaration of all helper methods
10331033
10341034
1035-
const int ocio_grading_rgbcurve_knotsOffsets_0[8] = {0, 5, -1, 0, -1, 0, -1, 0};
1036-
const float ocio_grading_rgbcurve_knots_0[5] = {0., 0.333333343, 0.5, 0.666666508, 1.};
1037-
const int ocio_grading_rgbcurve_coefsOffsets_0[8] = {0, 12, -1, 0, -1, 0, -1, 0};
1038-
const float ocio_grading_rgbcurve_coefs_0[12] = {0.0982520878, 0.393008381, 0.347727984, 0.08693178, 0.934498608, 1., 1.13100278, 1.246912, 0., 0.322416425, 0.5, 0.698159397};
1035+
constant constexpr static int ocio_grading_rgbcurve_knotsOffsets_0[8] = {0, 5, -1, 0, -1, 0, -1, 0};
1036+
constant constexpr static float ocio_grading_rgbcurve_knots_0[5] = {0., 0.333333343, 0.5, 0.666666508, 1.};
1037+
constant constexpr static int ocio_grading_rgbcurve_coefsOffsets_0[8] = {0, 12, -1, 0, -1, 0, -1, 0};
1038+
constant constexpr static float ocio_grading_rgbcurve_coefs_0[12] = {0.0982520878, 0.393008381, 0.347727984, 0.08693178, 0.934498608, 1., 1.13100278, 1.246912, 0., 0.322416425, 0.5, 0.698159397};
10391039
10401040
float ocio_grading_rgbcurve_evalBSplineCurve_0(int curveIdx, float x)
10411041
{

0 commit comments

Comments
 (0)