Skip to content

Shader builder optimizations for scalar functions #298

Description

@keller-mark

Follow-up from #296

Currently, the shader builder generates "scalar functions" which simply return a scalar value - these incur a function call which is unnecessary, and in many cases is executed for every rendered instance. Can we optimize by inlining the scalar values at the call sites? Or just define a constant and then use the constant at the call site (i.e., drop the function-call parentheses)?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions