Documentation

Unity Engine

Download Unity

Unity Engine

Compute shader Import Settings window reference

View the properties and compiled code of a compute shader.
Read time 1 minuteLast updated 2 months ago

View the properties and compiled code of a compute shader.

Imported object

Property

Description

KernelsDisplays the names of the kernels the shader code defines, and which graphics APIs Unity compiles the kernels for.
Preprocess onlySets Show compiled code to generate only the preprocessed code instead of the final code. For more information, refer to Shader compilation.
Strip #line directivesRemoves
#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 codeOpens your text editor with the shader code Unity compiles.

Additional resources