Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


HasKernel(string)

Checks whether a shader contains a given kernel.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public bool HasKernel(string name)

Parameters

name

The name of the kernel to look for.

Returns

Type

Description

boolTrue if the kernel is found, false otherwise.