C# 클래스 UnityEngine.ComputeBuffer

상속: Object, IDisposable
파일 보기 프로젝트 열기: CarlosHBC/UnityDecompiled 1 사용 예제들

공개 메소드들

메소드 설명
ComputeBuffer ( int count, int stride ) : System

Create a Compute Buffer.

ComputeBuffer ( int count, int stride, ComputeBufferType type ) : System

Create a Compute Buffer.

Dispose ( ) : void
GetNativeBufferPtr ( ) : IntPtr

Retrieve a native (underlying graphics API) pointer to the buffer.

Release ( ) : void

Release a Compute Buffer.

비공개 메소드들

메소드 설명
CopyCount ( ComputeBuffer src, ComputeBuffer dst, int dstOffset ) : void
DestroyBuffer ( ComputeBuffer buf ) : void
Dispose ( bool disposing ) : void
GetData ( Array data ) : void
INTERNAL_CALL_GetNativeBufferPtr ( ComputeBuffer self, IntPtr &value ) : void
InitBuffer ( ComputeBuffer buf, int count, int stride, ComputeBufferType type ) : void
InternalGetData ( Array data, int elemSize ) : void
InternalSetData ( Array data, int elemSize ) : void
SetCounterValue ( uint counterValue ) : void
SetData ( Array data ) : void

메소드 상세

ComputeBuffer() 공개 메소드

Create a Compute Buffer.

public ComputeBuffer ( int count, int stride ) : System
count int Number of elements in the buffer.
stride int Size of one element in the buffer. Has to match size of buffer type in the shader. See for cross-platform compatibility information.
리턴 System

ComputeBuffer() 공개 메소드

Create a Compute Buffer.

public ComputeBuffer ( int count, int stride, ComputeBufferType type ) : System
count int Number of elements in the buffer.
stride int Size of one element in the buffer. Has to match size of buffer type in the shader. See for cross-platform compatibility information.
type ComputeBufferType Type of the buffer, default is ComputeBufferType.Default.
리턴 System

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

GetNativeBufferPtr() 공개 메소드

Retrieve a native (underlying graphics API) pointer to the buffer.

public GetNativeBufferPtr ( ) : IntPtr
리턴 IntPtr

Release() 공개 메소드

Release a Compute Buffer.

public Release ( ) : void
리턴 void