Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Ability to sparsely gather scalar values and connect them to elements of a dynamic or statically sized array parameter #1826

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sfriedmapixar
Copy link
Contributor

Description

This requires you to first declare a setting for the dynamic array input that
will be used to size and provide values for any unconnected elements of the
dynamically sized array.  After that, individual scalar->arrayelem connections
can be specified from any number of different upstream shading nodes.  This
facilitates gathering inputs from across your shading network, for example
several procedurally generated color signals and using them to drive inputs
to shading nodes that are best left dynamically sized, such as the inputs
to spline operations.

Tests

This includes a new test in vararray-scalar-connect to demonstrate and
test the new connection method.

Checklist:

  • [ X] I have read the contribution guidelines.
  • I have updated the documentation, if applicable.
  • I have ensured that the change is tested somewhere in the testsuite (adding new test cases if necessary).
  • My code follows the prevailing code style of this project. If I haven't
    already run clang-format v17 before submitting, I definitely will look at
    the CI test that runs clang-format and fix anything that it highlights as
    being nonconforming.

…ay input.

This requires you to first declare a setting for the dynamic array input that
will be used to size and provide values for any unconnected elements of the
dynamically sized array.  After that, individual scalar->arrayelem connections
can be specified from any number of different upstream shading nodes.  This
facilitates gathering inputs from across your shading network, for example
several procedurally generated color signals and using them to drive inputs
to shading nodes that are best left dynamically sized, such as the inputs
to spline operations.

This includes a new test in vararray-scalar-connect to demonstrate and
test the new connection method.
:

Signed-off-by: Stephen Friedman <[email protected]>
… to init the values that upstream nodes will overwrite, so remove that to simplify.

Signed-off-by: Stephen Friedman <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant