From 554acb58ef3edd8166ff854467ec9960f9ddd386 Mon Sep 17 00:00:00 2001 From: Larry Gritz Date: Thu, 3 Aug 2023 09:37:59 -0700 Subject: [PATCH] admin: Add missing copyright notice to many files Our latest license scan from LF reveailed that the usual copyright and license declaration was missing on many shader source files in testsuite. This was never intentional, it was simply overlooked for certain test files. Just add the standard notice to those files. Signed-off-by: Larry Gritz --- src/build-scripts/ci-coverage.bash | 4 ++++ src/build-scripts/save-env.bash | 4 ++++ src/shaders/mandelbrot.osl | 5 ++--- testsuite/andor-reg/a_float_u_b_float_u.osl | 5 +++++ testsuite/bitwise-and-reg/a_u_b_u.osl | 5 +++++ testsuite/bitwise-and-reg/a_u_b_v.osl | 5 +++++ testsuite/bitwise-and-reg/a_v_b_u.osl | 5 +++++ testsuite/bitwise-and-reg/a_v_b_v.osl | 5 +++++ testsuite/bitwise-and-reg/a_v_b_vconditional.osl | 5 +++++ testsuite/bitwise-and-reg/a_vconditional_b_u.osl | 5 +++++ testsuite/bitwise-and-reg/a_vconditional_b_v.osl | 5 +++++ .../bitwise-and-reg/a_vconditional_b_vconditional.osl | 5 +++++ testsuite/bitwise-xor-reg/a_v_b_v.osl | 5 +++++ testsuite/bitwise-xor-reg/a_v_b_vconditional.osl | 5 +++++ testsuite/bitwise-xor-reg/a_vconditional_b_u.osl | 5 +++++ testsuite/bitwise-xor-reg/a_vconditional_b_v.osl | 5 +++++ .../bitwise-xor-reg/a_vconditional_b_vconditional.osl | 5 +++++ testsuite/blackbody-reg/blackbody_u_temperature.osl | 7 ++++++- testsuite/blackbody-reg/blackbody_v_temperature.osl | 7 ++++++- testsuite/color-reg/test_color_3xu_float.osl | 5 +++++ testsuite/color-reg/test_color_u_space_3xv_dfloat.osl | 5 +++++ testsuite/color-reg/test_color_u_space_3xv_float.osl | 5 +++++ testsuite/color-reg/test_color_v_dfloat.osl | 5 +++++ testsuite/color-reg/test_color_v_float.osl | 5 +++++ testsuite/color-reg/test_color_v_space_3xu_float.osl | 5 +++++ testsuite/color-reg/test_color_v_space_3xv_dfloat.osl | 5 +++++ testsuite/color-reg/test_color_v_space_3xv_float.osl | 5 +++++ testsuite/common/shaders/pretty.h | 5 +++++ testsuite/length-reg/test_length_u_normal.osl | 5 +++++ testsuite/length-reg/test_length_u_vector.osl | 5 +++++ testsuite/length-reg/test_length_v_dnormal.osl | 5 +++++ testsuite/length-reg/test_length_v_dvector.osl | 5 +++++ testsuite/length-reg/test_length_v_normal.osl | 5 +++++ testsuite/length-reg/test_length_v_vector.osl | 5 +++++ testsuite/mix-reg/test_mix_u_float_u_float_u_float.osl | 5 +++++ testsuite/mix-reg/test_mix_v_float_v_float_v_float.osl | 5 +++++ testsuite/mix-reg/test_mix_v_vector_u_vector_u_float.osl | 5 +++++ testsuite/mix-reg/test_mix_v_vector_u_vector_u_vector.osl | 5 +++++ testsuite/mix-reg/test_mix_v_vector_u_vector_v_float.osl | 5 +++++ testsuite/mix-reg/test_mix_v_vector_u_vector_v_vector.osl | 5 +++++ testsuite/mix-reg/test_mix_v_vector_v_vector_u_float.osl | 5 +++++ testsuite/mix-reg/test_mix_v_vector_v_vector_u_vector.osl | 5 +++++ testsuite/mix-reg/test_mix_v_vector_v_vector_v_float.osl | 5 +++++ testsuite/mix-reg/test_mix_v_vector_v_vector_v_vector.osl | 5 +++++ testsuite/select-reg/test_u_color_u_color_u_color.osl | 5 +++++ testsuite/select-reg/test_v_float_u_float_u_float.osl | 5 +++++ testsuite/select-reg/test_v_float_u_float_u_int.osl | 5 +++++ testsuite/select-reg/test_v_float_u_float_v_float.osl | 5 +++++ testsuite/select-reg/test_v_float_u_float_v_int.osl | 5 +++++ testsuite/select-reg/test_v_float_v_float_u_float.osl | 5 +++++ testsuite/select-reg/test_v_float_v_float_u_int.osl | 5 +++++ testsuite/select-reg/test_v_float_v_float_v_float.osl | 5 +++++ testsuite/select-reg/test_v_float_v_float_v_int.osl | 5 +++++ testsuite/spline-reg/runspline.h | 5 +++++ .../spline-reg/test_deriv_spline_c_float_c_colorarray.osl | 7 ++++++- .../splineinverse-knots-ascend-reg/runsplineinverse.h | 5 +++++ .../splineinverse-knots-descend-reg/runsplineinverse.h | 5 +++++ .../test_splineinverse_c_float_c_floatarray.osl | 7 ++++++- .../test_splineinverse_c_float_u_floatarray.osl | 7 ++++++- .../test_splineinverse_c_float_v_floatarray.osl | 7 ++++++- .../test_splineinverse_u_float_c_floatarray.osl | 7 ++++++- .../test_splineinverse_u_float_u_floatarray.osl | 7 ++++++- .../test_splineinverse_u_float_v_floatarray.osl | 7 ++++++- .../test_splineinverse_v_float_c_floatarray.osl | 7 ++++++- .../test_splineinverse_v_float_u_floatarray.osl | 7 ++++++- .../test_splineinverse_v_float_v_floatarray.osl | 7 ++++++- testsuite/struct-init-copy/Astruct.h | 5 +++++ testsuite/struct-layers/defs.h | 5 +++++ .../wavelength_color-reg/wavelength_u_lambda_masked.osl | 7 ++++++- testsuite/wavelength_color-reg/wavelength_v_lambda.osl | 5 +++++ .../wavelength_color-reg/wavelength_v_lambda_masked.osl | 7 ++++++- 71 files changed, 364 insertions(+), 17 deletions(-) diff --git a/src/build-scripts/ci-coverage.bash b/src/build-scripts/ci-coverage.bash index ffeb50a24..017fd610d 100755 --- a/src/build-scripts/ci-coverage.bash +++ b/src/build-scripts/ci-coverage.bash @@ -1,5 +1,9 @@ #!/usr/bin/env bash +# Copyright Contributors to the Open Shading Language project. +# SPDX-License-Identifier: BSD-3-Clause +# https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + # Run code coverage analysis # This assumes that the build occurred with CODECOV=1 andtests have already # fully run. diff --git a/src/build-scripts/save-env.bash b/src/build-scripts/save-env.bash index da4962480..edb3ecd33 100755 --- a/src/build-scripts/save-env.bash +++ b/src/build-scripts/save-env.bash @@ -1,5 +1,9 @@ #!/usr/bin/env bash +# Copyright Contributors to the Open Shading Language project. +# SPDX-License-Identifier: BSD-3-Clause +# https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + # Save the env for use by other stages. Exclude things that we know aren't # needed. printenv \ diff --git a/src/shaders/mandelbrot.osl b/src/shaders/mandelbrot.osl index 5b5ff015a..2572b768a 100644 --- a/src/shaders/mandelbrot.osl +++ b/src/shaders/mandelbrot.osl @@ -1,7 +1,6 @@ -///////////////////////////////////////////////////////////////////////////// // Copyright Contributors to the Open Shading Language project. -// BSD licensed, see https://github.com/AcademySoftwareFoundation/OpenShadingLanguage -///////////////////////////////////////////////////////////////////////////// +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage diff --git a/testsuite/andor-reg/a_float_u_b_float_u.osl b/testsuite/andor-reg/a_float_u_b_float_u.osl index 4c9d8a7fe..c5b90cea0 100644 --- a/testsuite/andor-reg/a_float_u_b_float_u.osl +++ b/testsuite/andor-reg/a_float_u_b_float_u.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader a_float_u_b_float_u (output vector cout = 0, output vector mcout = 0) { float a = 1/raytype("camera")*5 ; diff --git a/testsuite/bitwise-and-reg/a_u_b_u.osl b/testsuite/bitwise-and-reg/a_u_b_u.osl index 7b7c4495f..2dd6fa516 100644 --- a/testsuite/bitwise-and-reg/a_u_b_u.osl +++ b/testsuite/bitwise-and-reg/a_u_b_u.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader a_u_b_u (output vector cout = 0, output vector mcout = 0) { int a = raytype("camera")*10; diff --git a/testsuite/bitwise-and-reg/a_u_b_v.osl b/testsuite/bitwise-and-reg/a_u_b_v.osl index 36eada7e9..68277960f 100644 --- a/testsuite/bitwise-and-reg/a_u_b_v.osl +++ b/testsuite/bitwise-and-reg/a_u_b_v.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader a_u_b_v (output vector cout = 0, output vector mcout = 0) { int a = 2; diff --git a/testsuite/bitwise-and-reg/a_v_b_u.osl b/testsuite/bitwise-and-reg/a_v_b_u.osl index 6db120488..83feaafd1 100644 --- a/testsuite/bitwise-and-reg/a_v_b_u.osl +++ b/testsuite/bitwise-and-reg/a_v_b_u.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader a_v_b_u (output vector cout = 0, output vector mcout = 0) { int a = int(P[0])*10; diff --git a/testsuite/bitwise-and-reg/a_v_b_v.osl b/testsuite/bitwise-and-reg/a_v_b_v.osl index 740646f6b..db03e5be3 100644 --- a/testsuite/bitwise-and-reg/a_v_b_v.osl +++ b/testsuite/bitwise-and-reg/a_v_b_v.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader a_v_b_v(output vector cout = 0, output vector mcout = 0) { int a = int(P[0])*10; diff --git a/testsuite/bitwise-and-reg/a_v_b_vconditional.osl b/testsuite/bitwise-and-reg/a_v_b_vconditional.osl index 32e31d9f2..8c0acaf8a 100644 --- a/testsuite/bitwise-and-reg/a_v_b_vconditional.osl +++ b/testsuite/bitwise-and-reg/a_v_b_vconditional.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader a_v_b_vconditional (output vector cout = 0, output vector mcout = 0) { int a = int(P[0])*10; diff --git a/testsuite/bitwise-and-reg/a_vconditional_b_u.osl b/testsuite/bitwise-and-reg/a_vconditional_b_u.osl index 5c47f9c41..d3067cfa2 100644 --- a/testsuite/bitwise-and-reg/a_vconditional_b_u.osl +++ b/testsuite/bitwise-and-reg/a_vconditional_b_u.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader a_vconditional_b_u (output vector cout = 0, output vector mcout = 0) { int a = (P[0] < 0.5); diff --git a/testsuite/bitwise-and-reg/a_vconditional_b_v.osl b/testsuite/bitwise-and-reg/a_vconditional_b_v.osl index 53dbc7866..9df8c85a2 100644 --- a/testsuite/bitwise-and-reg/a_vconditional_b_v.osl +++ b/testsuite/bitwise-and-reg/a_vconditional_b_v.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader a_vconditional_b_v (output vector cout = 0, output vector mcout = 0) { int a = (P[0] < 0.5); diff --git a/testsuite/bitwise-and-reg/a_vconditional_b_vconditional.osl b/testsuite/bitwise-and-reg/a_vconditional_b_vconditional.osl index 9292bb899..a6640b19e 100644 --- a/testsuite/bitwise-and-reg/a_vconditional_b_vconditional.osl +++ b/testsuite/bitwise-and-reg/a_vconditional_b_vconditional.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader a_vconditional_b_vconditional (output vector cout = 0, output vector mcout = 0) { int a = (P[0] < 0.5); diff --git a/testsuite/bitwise-xor-reg/a_v_b_v.osl b/testsuite/bitwise-xor-reg/a_v_b_v.osl index 63b78936a..beba9f711 100644 --- a/testsuite/bitwise-xor-reg/a_v_b_v.osl +++ b/testsuite/bitwise-xor-reg/a_v_b_v.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader a_v_b_v(output vector cout = 0, output vector mcout = 0) { int a = int(P[0])*10; diff --git a/testsuite/bitwise-xor-reg/a_v_b_vconditional.osl b/testsuite/bitwise-xor-reg/a_v_b_vconditional.osl index d909a7966..125fc6606 100644 --- a/testsuite/bitwise-xor-reg/a_v_b_vconditional.osl +++ b/testsuite/bitwise-xor-reg/a_v_b_vconditional.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader a_v_b_vconditional (output vector cout = 0, output vector mcout = 0) { int a = int(P[0])*10; diff --git a/testsuite/bitwise-xor-reg/a_vconditional_b_u.osl b/testsuite/bitwise-xor-reg/a_vconditional_b_u.osl index 70f16a00e..195a97729 100644 --- a/testsuite/bitwise-xor-reg/a_vconditional_b_u.osl +++ b/testsuite/bitwise-xor-reg/a_vconditional_b_u.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader a_vconditional_b_u (output vector cout = 0, output vector mcout = 0) { int a = (P[0] < 0.5); diff --git a/testsuite/bitwise-xor-reg/a_vconditional_b_v.osl b/testsuite/bitwise-xor-reg/a_vconditional_b_v.osl index 25ce1cee2..2f3c29ea2 100644 --- a/testsuite/bitwise-xor-reg/a_vconditional_b_v.osl +++ b/testsuite/bitwise-xor-reg/a_vconditional_b_v.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader a_vconditional_b_v (output vector cout = 0, output vector mcout = 0) { int a = (P[0] < 0.5); diff --git a/testsuite/bitwise-xor-reg/a_vconditional_b_vconditional.osl b/testsuite/bitwise-xor-reg/a_vconditional_b_vconditional.osl index d08f3aa2f..b7fe37211 100644 --- a/testsuite/bitwise-xor-reg/a_vconditional_b_vconditional.osl +++ b/testsuite/bitwise-xor-reg/a_vconditional_b_vconditional.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader a_vconditional_b_vconditional (output vector cout = 0, output vector mcout = 0) { int a = (P[0] < 0.5); diff --git a/testsuite/blackbody-reg/blackbody_u_temperature.osl b/testsuite/blackbody-reg/blackbody_u_temperature.osl index 7c1dbdac5..1ba2abb7f 100644 --- a/testsuite/blackbody-reg/blackbody_u_temperature.osl +++ b/testsuite/blackbody-reg/blackbody_u_temperature.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader blackbody_u_temperature (output color Cout = 0, output color mCout = 0) { float T = 10000.0*(1.0/(2*raytype("camera"))); // map u range from 0K to 10,000K @@ -14,4 +19,4 @@ shader blackbody_u_temperature (output color Cout = 0, output color mCout = 0) mCout = mcout_; Cout = cout_; -} \ No newline at end of file +} diff --git a/testsuite/blackbody-reg/blackbody_v_temperature.osl b/testsuite/blackbody-reg/blackbody_v_temperature.osl index 8c8120a1b..ba7760178 100644 --- a/testsuite/blackbody-reg/blackbody_v_temperature.osl +++ b/testsuite/blackbody-reg/blackbody_v_temperature.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader blackbody_v_temperature (output color Cout = 0, output color mCout = 0) { float T = 10000.0*u; // map u range from 0K to 10,000K @@ -13,4 +18,4 @@ shader blackbody_v_temperature (output color Cout = 0, output color mCout = 0) mCout = mcout_; Cout = cout_; -} \ No newline at end of file +} diff --git a/testsuite/color-reg/test_color_3xu_float.osl b/testsuite/color-reg/test_color_3xu_float.osl index 776bdefd4..f78c76d2f 100644 --- a/testsuite/color-reg/test_color_3xu_float.osl +++ b/testsuite/color-reg/test_color_3xu_float.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader test_color_3xu_float (output color Cout = 0) { diff --git a/testsuite/color-reg/test_color_u_space_3xv_dfloat.osl b/testsuite/color-reg/test_color_u_space_3xv_dfloat.osl index d6d25e16b..cc9dcd415 100644 --- a/testsuite/color-reg/test_color_u_space_3xv_dfloat.osl +++ b/testsuite/color-reg/test_color_u_space_3xv_dfloat.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader test_color_u_space_3xv_dfloat (string colorspace = "--param colorspace must_be_provided", output color Cout = 0) { diff --git a/testsuite/color-reg/test_color_u_space_3xv_float.osl b/testsuite/color-reg/test_color_u_space_3xv_float.osl index 49e4defae..c1ee107bf 100644 --- a/testsuite/color-reg/test_color_u_space_3xv_float.osl +++ b/testsuite/color-reg/test_color_u_space_3xv_float.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader test_color_u_space_3xv_float (string colorspace = "--param colorspace must_be_provided", output color Cout = 0) { diff --git a/testsuite/color-reg/test_color_v_dfloat.osl b/testsuite/color-reg/test_color_v_dfloat.osl index 004b7d57c..f3ef8c82e 100644 --- a/testsuite/color-reg/test_color_v_dfloat.osl +++ b/testsuite/color-reg/test_color_v_dfloat.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader test_color_v_dfloat(output color Cout = 0) { diff --git a/testsuite/color-reg/test_color_v_float.osl b/testsuite/color-reg/test_color_v_float.osl index f52b41972..c82e73885 100644 --- a/testsuite/color-reg/test_color_v_float.osl +++ b/testsuite/color-reg/test_color_v_float.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader test_color_v_float (output color Cout = 0) { diff --git a/testsuite/color-reg/test_color_v_space_3xu_float.osl b/testsuite/color-reg/test_color_v_space_3xu_float.osl index 0c19f51e3..afa772857 100644 --- a/testsuite/color-reg/test_color_v_space_3xu_float.osl +++ b/testsuite/color-reg/test_color_v_space_3xu_float.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader test_color_v_space_3xu_float (output color Cout = 0) { diff --git a/testsuite/color-reg/test_color_v_space_3xv_dfloat.osl b/testsuite/color-reg/test_color_v_space_3xv_dfloat.osl index 87ad248fc..566d9773c 100644 --- a/testsuite/color-reg/test_color_v_space_3xv_dfloat.osl +++ b/testsuite/color-reg/test_color_v_space_3xv_dfloat.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader test_color_v_space_3xv_dfloat (output color Cout = 0) { diff --git a/testsuite/color-reg/test_color_v_space_3xv_float.osl b/testsuite/color-reg/test_color_v_space_3xv_float.osl index 022bddab6..354a0f3ff 100644 --- a/testsuite/color-reg/test_color_v_space_3xv_float.osl +++ b/testsuite/color-reg/test_color_v_space_3xv_float.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader test_color_v_space_3xv_float (output color Cout = 0) { diff --git a/testsuite/common/shaders/pretty.h b/testsuite/common/shaders/pretty.h index 500ec19a6..803ec4662 100644 --- a/testsuite/common/shaders/pretty.h +++ b/testsuite/common/shaders/pretty.h @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + // pretty(x) rounds very small values to zero and turns -0 values into +0. // This is useful for testsuite to eliminate some pesky LSB errors that // cause reference output to differ between platforms. diff --git a/testsuite/length-reg/test_length_u_normal.osl b/testsuite/length-reg/test_length_u_normal.osl index ead026817..636c72ad5 100644 --- a/testsuite/length-reg/test_length_u_normal.osl +++ b/testsuite/length-reg/test_length_u_normal.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader test_length_u_normal (output color Cout = 0) { diff --git a/testsuite/length-reg/test_length_u_vector.osl b/testsuite/length-reg/test_length_u_vector.osl index 26a3c26f9..417b24d13 100644 --- a/testsuite/length-reg/test_length_u_vector.osl +++ b/testsuite/length-reg/test_length_u_vector.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader test_length_u_vector (output color Cout = 0) { diff --git a/testsuite/length-reg/test_length_v_dnormal.osl b/testsuite/length-reg/test_length_v_dnormal.osl index c0724dfb4..766f5bf47 100644 --- a/testsuite/length-reg/test_length_v_dnormal.osl +++ b/testsuite/length-reg/test_length_v_dnormal.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader test_length_v_dnormal (output color Cout = 0) { diff --git a/testsuite/length-reg/test_length_v_dvector.osl b/testsuite/length-reg/test_length_v_dvector.osl index aa46778dd..9d5f0566f 100644 --- a/testsuite/length-reg/test_length_v_dvector.osl +++ b/testsuite/length-reg/test_length_v_dvector.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader test_length_v_dvector (output color Cout = 0) { diff --git a/testsuite/length-reg/test_length_v_normal.osl b/testsuite/length-reg/test_length_v_normal.osl index 6be680a6c..e3e03c75a 100644 --- a/testsuite/length-reg/test_length_v_normal.osl +++ b/testsuite/length-reg/test_length_v_normal.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader test_length_v_normal (output color Cout = 0) { diff --git a/testsuite/length-reg/test_length_v_vector.osl b/testsuite/length-reg/test_length_v_vector.osl index e2f7bda26..4b126ecbc 100644 --- a/testsuite/length-reg/test_length_v_vector.osl +++ b/testsuite/length-reg/test_length_v_vector.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader test_length_v_vector (output color Cout = 0) { diff --git a/testsuite/mix-reg/test_mix_u_float_u_float_u_float.osl b/testsuite/mix-reg/test_mix_u_float_u_float_u_float.osl index a3db6fb61..72a81ef4c 100644 --- a/testsuite/mix-reg/test_mix_u_float_u_float_u_float.osl +++ b/testsuite/mix-reg/test_mix_u_float_u_float_u_float.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader test_mix_u_float_u_float_u_float (output color Cout = 0) { diff --git a/testsuite/mix-reg/test_mix_v_float_v_float_v_float.osl b/testsuite/mix-reg/test_mix_v_float_v_float_v_float.osl index 69e64d254..c4ab36a5b 100644 --- a/testsuite/mix-reg/test_mix_v_float_v_float_v_float.osl +++ b/testsuite/mix-reg/test_mix_v_float_v_float_v_float.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader test_mix_v_float_v_float_v_float (output color Cout = 0) { diff --git a/testsuite/mix-reg/test_mix_v_vector_u_vector_u_float.osl b/testsuite/mix-reg/test_mix_v_vector_u_vector_u_float.osl index 5a9f48e94..d3b536903 100644 --- a/testsuite/mix-reg/test_mix_v_vector_u_vector_u_float.osl +++ b/testsuite/mix-reg/test_mix_v_vector_u_vector_u_float.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader test_mix_v_vector_u_vector_u_float (output color Cout = 0) { diff --git a/testsuite/mix-reg/test_mix_v_vector_u_vector_u_vector.osl b/testsuite/mix-reg/test_mix_v_vector_u_vector_u_vector.osl index 8394d2ec7..05075541d 100644 --- a/testsuite/mix-reg/test_mix_v_vector_u_vector_u_vector.osl +++ b/testsuite/mix-reg/test_mix_v_vector_u_vector_u_vector.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader test_mix_v_vector_u_vector_u_vector (output color Cout = 0) { diff --git a/testsuite/mix-reg/test_mix_v_vector_u_vector_v_float.osl b/testsuite/mix-reg/test_mix_v_vector_u_vector_v_float.osl index c2bdc9eb9..1d0a36b10 100644 --- a/testsuite/mix-reg/test_mix_v_vector_u_vector_v_float.osl +++ b/testsuite/mix-reg/test_mix_v_vector_u_vector_v_float.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader test_mix_v_vector_u_vector_v_float (output color Cout = 0) { diff --git a/testsuite/mix-reg/test_mix_v_vector_u_vector_v_vector.osl b/testsuite/mix-reg/test_mix_v_vector_u_vector_v_vector.osl index 2f2969f94..b9dfcd61c 100644 --- a/testsuite/mix-reg/test_mix_v_vector_u_vector_v_vector.osl +++ b/testsuite/mix-reg/test_mix_v_vector_u_vector_v_vector.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader test_mix_v_vector_u_vector_v_vector (output color Cout = 0) { diff --git a/testsuite/mix-reg/test_mix_v_vector_v_vector_u_float.osl b/testsuite/mix-reg/test_mix_v_vector_v_vector_u_float.osl index 18110a999..963de55eb 100644 --- a/testsuite/mix-reg/test_mix_v_vector_v_vector_u_float.osl +++ b/testsuite/mix-reg/test_mix_v_vector_v_vector_u_float.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader test_mix_v_vector_v_vector_u_float (output color Cout = 0) { diff --git a/testsuite/mix-reg/test_mix_v_vector_v_vector_u_vector.osl b/testsuite/mix-reg/test_mix_v_vector_v_vector_u_vector.osl index bc565e3b2..509186a47 100644 --- a/testsuite/mix-reg/test_mix_v_vector_v_vector_u_vector.osl +++ b/testsuite/mix-reg/test_mix_v_vector_v_vector_u_vector.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader test_mix_v_vector_v_vector_u_vector (output color Cout = 0) { diff --git a/testsuite/mix-reg/test_mix_v_vector_v_vector_v_float.osl b/testsuite/mix-reg/test_mix_v_vector_v_vector_v_float.osl index f38268972..2f7b70faf 100644 --- a/testsuite/mix-reg/test_mix_v_vector_v_vector_v_float.osl +++ b/testsuite/mix-reg/test_mix_v_vector_v_vector_v_float.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader test_mix_v_vector_v_vector_v_float (output color Cout = 0) { diff --git a/testsuite/mix-reg/test_mix_v_vector_v_vector_v_vector.osl b/testsuite/mix-reg/test_mix_v_vector_v_vector_v_vector.osl index fbbbdfb20..84ecb6fff 100644 --- a/testsuite/mix-reg/test_mix_v_vector_v_vector_v_vector.osl +++ b/testsuite/mix-reg/test_mix_v_vector_v_vector_v_vector.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader test_mix_v_vector_v_vector_v_vector (output color Cout = 0) { diff --git a/testsuite/select-reg/test_u_color_u_color_u_color.osl b/testsuite/select-reg/test_u_color_u_color_u_color.osl index 5f20f179d..90d3c443c 100644 --- a/testsuite/select-reg/test_u_color_u_color_u_color.osl +++ b/testsuite/select-reg/test_u_color_u_color_u_color.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader test_u_color_u_color_u_color (output color Cout = 0) { diff --git a/testsuite/select-reg/test_v_float_u_float_u_float.osl b/testsuite/select-reg/test_v_float_u_float_u_float.osl index ec9d5ae0b..6504c79df 100644 --- a/testsuite/select-reg/test_v_float_u_float_u_float.osl +++ b/testsuite/select-reg/test_v_float_u_float_u_float.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader test_v_float_u_float_u_float (output color Cout = 0) { diff --git a/testsuite/select-reg/test_v_float_u_float_u_int.osl b/testsuite/select-reg/test_v_float_u_float_u_int.osl index 3a2d4fed7..6d3b32599 100644 --- a/testsuite/select-reg/test_v_float_u_float_u_int.osl +++ b/testsuite/select-reg/test_v_float_u_float_u_int.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader test_v_float_u_float_u_int (output color Cout = 0) { diff --git a/testsuite/select-reg/test_v_float_u_float_v_float.osl b/testsuite/select-reg/test_v_float_u_float_v_float.osl index dec6b427e..0b25223de 100644 --- a/testsuite/select-reg/test_v_float_u_float_v_float.osl +++ b/testsuite/select-reg/test_v_float_u_float_v_float.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader test_v_float_u_float_v_float (output color Cout = 0) { diff --git a/testsuite/select-reg/test_v_float_u_float_v_int.osl b/testsuite/select-reg/test_v_float_u_float_v_int.osl index 53536bc41..dca4dfd36 100644 --- a/testsuite/select-reg/test_v_float_u_float_v_int.osl +++ b/testsuite/select-reg/test_v_float_u_float_v_int.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader test_v_float_u_float_v_int (output color Cout = 0) { diff --git a/testsuite/select-reg/test_v_float_v_float_u_float.osl b/testsuite/select-reg/test_v_float_v_float_u_float.osl index df561b23d..6d91c74a5 100644 --- a/testsuite/select-reg/test_v_float_v_float_u_float.osl +++ b/testsuite/select-reg/test_v_float_v_float_u_float.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader test_v_float_v_float_u_float (output color Cout = 0) { diff --git a/testsuite/select-reg/test_v_float_v_float_u_int.osl b/testsuite/select-reg/test_v_float_v_float_u_int.osl index e406909f0..2987c17b4 100644 --- a/testsuite/select-reg/test_v_float_v_float_u_int.osl +++ b/testsuite/select-reg/test_v_float_v_float_u_int.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader test_v_float_v_float_u_int (output color Cout = 0) { diff --git a/testsuite/select-reg/test_v_float_v_float_v_float.osl b/testsuite/select-reg/test_v_float_v_float_v_float.osl index bc563d113..332ab96b4 100644 --- a/testsuite/select-reg/test_v_float_v_float_v_float.osl +++ b/testsuite/select-reg/test_v_float_v_float_v_float.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader test_v_float_v_float_v_float (output color Cout = 0) { diff --git a/testsuite/select-reg/test_v_float_v_float_v_int.osl b/testsuite/select-reg/test_v_float_v_float_v_int.osl index 7b7956239..4628ac200 100644 --- a/testsuite/select-reg/test_v_float_v_float_v_int.osl +++ b/testsuite/select-reg/test_v_float_v_float_v_int.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader test_v_float_v_float_v_int (output color Cout = 0) { diff --git a/testsuite/spline-reg/runspline.h b/testsuite/spline-reg/runspline.h index 9b64cf86c..2395dca4f 100644 --- a/testsuite/spline-reg/runspline.h +++ b/testsuite/spline-reg/runspline.h @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + void init_knots (output float fltknots[16], float scale) { fltknots[ 0] = 0.0 * scale; diff --git a/testsuite/spline-reg/test_deriv_spline_c_float_c_colorarray.osl b/testsuite/spline-reg/test_deriv_spline_c_float_c_colorarray.osl index 179cf3138..01799e3e0 100644 --- a/testsuite/spline-reg/test_deriv_spline_c_float_c_colorarray.osl +++ b/testsuite/spline-reg/test_deriv_spline_c_float_c_colorarray.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + #include "runspline.h" shader test_deriv_spline_c_float_c_colorarray ( @@ -11,4 +16,4 @@ shader test_deriv_spline_c_float_c_colorarray ( ValOut = value; DxOut = dxVal; DyOut = dyVal; -} \ No newline at end of file +} diff --git a/testsuite/splineinverse-knots-ascend-reg/runsplineinverse.h b/testsuite/splineinverse-knots-ascend-reg/runsplineinverse.h index 990c6f107..3f7cba299 100644 --- a/testsuite/splineinverse-knots-ascend-reg/runsplineinverse.h +++ b/testsuite/splineinverse-knots-ascend-reg/runsplineinverse.h @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + #if 1 void init_knots (output float fltknots[16], float scale) diff --git a/testsuite/splineinverse-knots-descend-reg/runsplineinverse.h b/testsuite/splineinverse-knots-descend-reg/runsplineinverse.h index 118ededb6..d4af4ca87 100644 --- a/testsuite/splineinverse-knots-descend-reg/runsplineinverse.h +++ b/testsuite/splineinverse-knots-descend-reg/runsplineinverse.h @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + void init_knots (output float fltknots[16], float scale) { // splineinverse requires only increasing or decreasing values diff --git a/testsuite/splineinverse-knots-descend-reg/test_splineinverse_c_float_c_floatarray.osl b/testsuite/splineinverse-knots-descend-reg/test_splineinverse_c_float_c_floatarray.osl index 8fc2a1e61..b1911c42d 100644 --- a/testsuite/splineinverse-knots-descend-reg/test_splineinverse_c_float_c_floatarray.osl +++ b/testsuite/splineinverse-knots-descend-reg/test_splineinverse_c_float_c_floatarray.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + #include "runsplineinverse.h" shader test_splineinverse_c_float_c_floatarray ( @@ -5,4 +10,4 @@ shader test_splineinverse_c_float_c_floatarray ( { Fout = run_all_fsplineinverses(0.5, 1.0); -} \ No newline at end of file +} diff --git a/testsuite/splineinverse-knots-descend-reg/test_splineinverse_c_float_u_floatarray.osl b/testsuite/splineinverse-knots-descend-reg/test_splineinverse_c_float_u_floatarray.osl index 055fd9a42..ce3d160d8 100644 --- a/testsuite/splineinverse-knots-descend-reg/test_splineinverse_c_float_u_floatarray.osl +++ b/testsuite/splineinverse-knots-descend-reg/test_splineinverse_c_float_u_floatarray.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + #include "runsplineinverse.h" shader test_splineinverse_c_float_u_floatarray ( @@ -7,4 +12,4 @@ shader test_splineinverse_c_float_u_floatarray ( Fout = run_all_fsplineinverses(0.5, uniform_scale); -} \ No newline at end of file +} diff --git a/testsuite/splineinverse-knots-descend-reg/test_splineinverse_c_float_v_floatarray.osl b/testsuite/splineinverse-knots-descend-reg/test_splineinverse_c_float_v_floatarray.osl index f9250a2fe..8697eaca7 100644 --- a/testsuite/splineinverse-knots-descend-reg/test_splineinverse_c_float_v_floatarray.osl +++ b/testsuite/splineinverse-knots-descend-reg/test_splineinverse_c_float_v_floatarray.osl @@ -1,7 +1,12 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + #include "runsplineinverse.h" shader test_splineinverse_c_float_v_floatarray ( output float Fout = 0) { Fout = run_all_fsplineinverses(0.5, u); -} \ No newline at end of file +} diff --git a/testsuite/splineinverse-knots-descend-reg/test_splineinverse_u_float_c_floatarray.osl b/testsuite/splineinverse-knots-descend-reg/test_splineinverse_u_float_c_floatarray.osl index 81be5d7ae..69c6886fc 100644 --- a/testsuite/splineinverse-knots-descend-reg/test_splineinverse_u_float_c_floatarray.osl +++ b/testsuite/splineinverse-knots-descend-reg/test_splineinverse_u_float_c_floatarray.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + #include "runsplineinverse.h" shader test_splineinverse_u_float_c_floatarray ( @@ -7,4 +12,4 @@ shader test_splineinverse_u_float_c_floatarray ( Fout = run_all_fsplineinverses(uniform_x, 1.0); -} \ No newline at end of file +} diff --git a/testsuite/splineinverse-knots-descend-reg/test_splineinverse_u_float_u_floatarray.osl b/testsuite/splineinverse-knots-descend-reg/test_splineinverse_u_float_u_floatarray.osl index 96c5cb0f1..627c47dff 100644 --- a/testsuite/splineinverse-knots-descend-reg/test_splineinverse_u_float_u_floatarray.osl +++ b/testsuite/splineinverse-knots-descend-reg/test_splineinverse_u_float_u_floatarray.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + #include "runsplineinverse.h" shader test_splineinverse_u_float_u_floatarray ( @@ -8,4 +13,4 @@ shader test_splineinverse_u_float_u_floatarray ( Fout = run_all_fsplineinverses(uniform_x, uniform_scale); -} \ No newline at end of file +} diff --git a/testsuite/splineinverse-knots-descend-reg/test_splineinverse_u_float_v_floatarray.osl b/testsuite/splineinverse-knots-descend-reg/test_splineinverse_u_float_v_floatarray.osl index 242759aeb..b625e391b 100644 --- a/testsuite/splineinverse-knots-descend-reg/test_splineinverse_u_float_v_floatarray.osl +++ b/testsuite/splineinverse-knots-descend-reg/test_splineinverse_u_float_v_floatarray.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + #include "runsplineinverse.h" shader test_splineinverse_u_float_v_floatarray ( @@ -5,4 +10,4 @@ shader test_splineinverse_u_float_v_floatarray ( { float uniform_x = 0.5*raytype("camera"); Fout = run_all_fsplineinverses(uniform_x, u); -} \ No newline at end of file +} diff --git a/testsuite/splineinverse-knots-descend-reg/test_splineinverse_v_float_c_floatarray.osl b/testsuite/splineinverse-knots-descend-reg/test_splineinverse_v_float_c_floatarray.osl index da25e53b8..e62e8f3b7 100644 --- a/testsuite/splineinverse-knots-descend-reg/test_splineinverse_v_float_c_floatarray.osl +++ b/testsuite/splineinverse-knots-descend-reg/test_splineinverse_v_float_c_floatarray.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + #include "runsplineinverse.h" shader test_splineinverse_v_float_c_floatarray ( @@ -5,4 +10,4 @@ shader test_splineinverse_v_float_c_floatarray ( { Fout = run_all_fsplineinverses(u, 1.0); -} \ No newline at end of file +} diff --git a/testsuite/splineinverse-knots-descend-reg/test_splineinverse_v_float_u_floatarray.osl b/testsuite/splineinverse-knots-descend-reg/test_splineinverse_v_float_u_floatarray.osl index d9b2aa808..8784f0b0c 100644 --- a/testsuite/splineinverse-knots-descend-reg/test_splineinverse_v_float_u_floatarray.osl +++ b/testsuite/splineinverse-knots-descend-reg/test_splineinverse_v_float_u_floatarray.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + #include "runsplineinverse.h" shader test_splineinverse_v_float_u_floatarray ( @@ -5,4 +10,4 @@ shader test_splineinverse_v_float_u_floatarray ( { float uniform_scale = 0.75*raytype("camera"); Fout = run_all_fsplineinverses(u, uniform_scale); -} \ No newline at end of file +} diff --git a/testsuite/splineinverse-knots-descend-reg/test_splineinverse_v_float_v_floatarray.osl b/testsuite/splineinverse-knots-descend-reg/test_splineinverse_v_float_v_floatarray.osl index b3cc0b635..1c6f8080e 100644 --- a/testsuite/splineinverse-knots-descend-reg/test_splineinverse_v_float_v_floatarray.osl +++ b/testsuite/splineinverse-knots-descend-reg/test_splineinverse_v_float_v_floatarray.osl @@ -1,7 +1,12 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + #include "runsplineinverse.h" shader test_splineinverse_v_float_v_floatarray ( output float Fout = 0) { Fout = run_all_fsplineinverses(u, (1.0-(0.5*v))); -} \ No newline at end of file +} diff --git a/testsuite/struct-init-copy/Astruct.h b/testsuite/struct-init-copy/Astruct.h index 7bae2211c..d033c29fa 100644 --- a/testsuite/struct-init-copy/Astruct.h +++ b/testsuite/struct-init-copy/Astruct.h @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + struct Astruct { float s, t; diff --git a/testsuite/struct-layers/defs.h b/testsuite/struct-layers/defs.h index 9a84ccf11..0d956ca98 100644 --- a/testsuite/struct-layers/defs.h +++ b/testsuite/struct-layers/defs.h @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + struct coords { float s, t; }; diff --git a/testsuite/wavelength_color-reg/wavelength_u_lambda_masked.osl b/testsuite/wavelength_color-reg/wavelength_u_lambda_masked.osl index 00d8f5e6b..64bc94dc1 100644 --- a/testsuite/wavelength_color-reg/wavelength_u_lambda_masked.osl +++ b/testsuite/wavelength_color-reg/wavelength_u_lambda_masked.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader wavelength_u_lambda_masked (output color Cout = 0) { float lambda = 1.0/(2*raytype("camera")); @@ -10,4 +15,4 @@ shader wavelength_u_lambda_masked (output color Cout = 0) } Cout = c; -} \ No newline at end of file +} diff --git a/testsuite/wavelength_color-reg/wavelength_v_lambda.osl b/testsuite/wavelength_color-reg/wavelength_v_lambda.osl index b962e77cf..5e6bdc04e 100644 --- a/testsuite/wavelength_color-reg/wavelength_v_lambda.osl +++ b/testsuite/wavelength_color-reg/wavelength_v_lambda.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader wavelength_v_lambda (output color Cout = 0) { float lambda = 380+u*320; //Increase visibility diff --git a/testsuite/wavelength_color-reg/wavelength_v_lambda_masked.osl b/testsuite/wavelength_color-reg/wavelength_v_lambda_masked.osl index bd4264b51..7d67b7acc 100644 --- a/testsuite/wavelength_color-reg/wavelength_v_lambda_masked.osl +++ b/testsuite/wavelength_color-reg/wavelength_v_lambda_masked.osl @@ -1,3 +1,8 @@ +// Copyright Contributors to the Open Shading Language project. +// SPDX-License-Identifier: BSD-3-Clause +// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage + + shader wavelength_v_lambda_masked (output color Cout = 0) { float lambda = 0.18*u; @@ -9,4 +14,4 @@ shader wavelength_v_lambda_masked (output color Cout = 0) c = wavelength_color (lambda); } Cout = c; -} \ No newline at end of file +}