C# Class UnityEngine.ComputeBuffer

Inheritance: Object, IDisposable
Afficher le fichier Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
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

Method Details

ComputeBuffer() public méthode

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.
Résultat System

ComputeBuffer() public méthode

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.
Résultat System

Dispose() public méthode

public Dispose ( ) : void
Résultat void

GetNativeBufferPtr() public méthode

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

public GetNativeBufferPtr ( ) : IntPtr
Résultat IntPtr

Release() public méthode

Release a Compute Buffer.

public Release ( ) : void
Résultat void