Version: Unity 6.6 Alpha (6000.6)
Language : English
Writing compute shaders for multiple platforms
Optimize shaders

Compute shader Import Settings window reference

Switch to Scripting

View the properties and compiled code of a compute shader.

Imported object

Property Description
Kernels Displays the names of the kernels the shaderA program that runs on the GPU. More info
See in Glossary
code defines, and which graphics APIs Unity compiles the kernels for.
Preprocess only Sets Show compiled code to generate only the preprocessed code instead of the final code. For more information, refer to Shader compilation.
Strip #line directives Removes #line statements that display how the preprocessed code maps to the original HLSL code. This property is available only if you enable Preprocess only.
Show compiled code Opens your text editor with the shader code Unity compiles.

Additional resources

Writing compute shaders for multiple platforms
Optimize shaders
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961