Version: Unity 6.5 Alpha (6000.5)
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