Documentation

Unity Engine

Download Unity

Unity Engine

kernelIndex

Index of the kernel used in this variant.
Read time 1 minuteLast updated 5 days ago

Definition

public int kernelIndex

Remarks

Kernel indices are positional, so adding, removing, or reordering the
#pragma kernel
lines of the compute shader can invalidate variants that were recorded earlier.