class in UnityEngine
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.Close
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.Close
GPU graphics data buffer, for working with data such as vertex and index buffers.
Most draw calls supply vertex and index buffers to the GPU. This structure exposes those buffers to script, in order to allow for low-level rendering control.
See Also: Graphics.DrawProcedural.
|count||Number of elements in the buffer (Read Only).|
|stride||Size of one element in the buffer (Read Only).|
|GraphicsBuffer||Create a Graphics Buffer.|
|GetData||Read data values from the buffer into an array. The array can only use blittable types.|
|GetNativeBufferPtr||Retrieve a native (underlying graphics API) pointer to the buffer.|
|IsValid||Returns true if this graphics buffer is valid, or false otherwise.|
|Release||Release a Graphics Buffer.|
|SetCounterValue||Sets counter value of append/consume buffer.|
|SetData||Set the buffer with values from an array.|
|CopyCount||Copy counter value of append/consume buffer into another buffer.|