您想找什么?
Unity Platform

Native Array Overloads for Shader Uniform Setters

Apr 2, 2025
Under Consideration
Safe harbor statement

The following is intended for informational purposes only, and may not be incorporated into any contract. No purchasing decisions should be made based on the following materials. Unity is not committing to deliver any functionality, features or code. The development, timing and release of all products, functionality and features are at the sole discretion of Unity, and are subject to change.

How to share roadmap feedback

If you have accepted to use functional cookies and logged in using your Unity ID at the top right of the page, then sharing feedback is as simple as clicking a card below, selecting a topic’s importance, adding your point of view, and submitting. If you prefer not to accept functional cookies or log in, you will be prompted to enter an email address and validate it, so we know how to reach out when the topic evolves. For more information read the Feedback and privacy terms.

Description:

Shader uniform/constant inputs can be set on a per-frame basis, using the Shader and Material APIs.

Introduce new Native Array overloads for the existing shader uniform setter functions, in order to enable additional CPU and memory usage optimization when processing shader uniform data.

Such functionality would provide additional control over memory management, and allow to reduce garbage collection overhead via the utilization of native arrays and temp allocators.

When creating native arrays using unmanage types, Burst Jobs could also be used, in order to parallelize and further optimize the processing of shader data on the CPU.

Expected Outcome:

  • Native Array overloads are available for shader uniform setter functions, enabling additional CPU and memory management optimizations when processing large amounts of shader uniform data.
Help us deliver the deliver that matter to you. Let us know how important is this for you.
By submitting you agree to the Unity’s feedback terms and privacy policy.
Discover upcoming updates and share your feedback