ShaderUtil.GetComputeShaderMessageCount

Switch to Manual
public static int GetComputeShaderMessageCount (ComputeShader s);

Parameters

sThe ComputeShader instance to check for messages.

Returns

int The number of errors and warnings generated by the Unity Shader Compiler.

Description

Returns the number of errors and warnings generated by the Unity Shader Compiler for the given ComputeShader.