Files
Larry Gritz 04d331e439 Transitioning repository to ASWF (#1329)
* Rename CLA files so they no longer say "draft."

* Change CONTRIBUTING.mv to correctly describe the new CLA process,
  remove language related to the old SPI CLAs. Also some touchups to
  README.md.

* Update the project_intake.md to check of various things that we've
  completed.

* Change all references to the old imageworks GitHub URLs to the new
  ASWF ones. (This touches comments at the start of basically every file.)

Signed-off-by: Larry Gritz <lg@larrygritz.com>
2021-01-25 09:44:09 -08:00

18 lines
499 B
Plaintext

// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage
void print_array_contents (string name, float f[])
{
printf ("%s array length %d\n", name, arraylength(f));
for (int i = 0; i < arraylength(f); ++i)
printf (" [%d] = %g\n", i, f[i]);
}
shader test (float a[] = {0}, float b[] = {0})
{
print_array_contents ("a", a);
print_array_contents ("b", b);
}