文档

Unity Engine


User Manual

Script Reference

Unity Engine


Burst memory aliasing

Tell Burst how your code uses memory so it can generate more efficient runtime code.
阅读时间1 分钟最后更新于 7 天前

Use memory aliasing to provide Burst with information about how your code uses data, which it can use to create runtime optimizations.

Topic

Description

Introduction to memory aliasingUnderstand how memory aliasing works and how you can use it to make Burst generate more efficient runtime code.
NoAlias attributeUse the
[NoAlias]
attribute to give Burst additional information on the aliasing of pointers and structs.
Aliasing and the job systemUnderstand the special limitations that apply for aliasing within jobs.

Additional resources