Version: 2021.1
언어: 한국어

GraphicsBuffer

class in UnityEngine

매뉴얼로 전환

설명

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.

변수

countNumber of elements in the buffer (Read Only).
strideSize of one element in the buffer (Read Only).

생성자

GraphicsBufferCreate a Graphics Buffer.

Public 함수

GetDataRead data values from the buffer into an array. The array can only use blittable types.
GetNativeBufferPtrRetrieve a native (underlying graphics API) pointer to the buffer.
IsValidReturns true if this graphics buffer is valid, or false otherwise.
ReleaseRelease a Graphics Buffer.
SetCounterValueSets counter value of append/consume buffer.
SetDataSet the buffer with values from an array.

정적 함수

CopyCountCopy counter value of append/consume buffer into another buffer.