Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Immutable

Static buffer, only initial upload allowed by the CPU
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
Immutable = 0

Remarks

The buffer is not modified by the CPU apart from optionally providing the initial contents of the buffer at buffer creation time. Unity typically stores these buffers in the GPU-only memory (where available). Compute shaders and other GPU operations are allowed to modify the contents of the buffer.