Show / Hide Table of Contents

Class ComputeBuffer

Inheritance
Object
ComputeBuffer
Implements
IDisposable
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEngine
Assembly: UnityEngine.dll
Syntax
public sealed class ComputeBuffer : IDisposable

Constructors

| Improve this Doc View Source

ComputeBuffer(Int32, Int32)

Declaration
public ComputeBuffer(int count, int stride)
Parameters
Type Name Description
Int32 count
Int32 stride
| Improve this Doc View Source

ComputeBuffer(Int32, Int32, ComputeBufferType)

Declaration
public ComputeBuffer(int count, int stride, ComputeBufferType type)
Parameters
Type Name Description
Int32 count
Int32 stride
ComputeBufferType type

Properties

count

Declaration
public int count { get; }
Property Value
Type Description
Int32

stride

Declaration
public int stride { get; }
Property Value
Type Description
Int32

Methods

CopyCount(ComputeBuffer, ComputeBuffer, Int32)

Declaration
public static void CopyCount(ComputeBuffer src, ComputeBuffer dst, int dstOffsetBytes)
Parameters
Type Name Description
ComputeBuffer src
ComputeBuffer dst
Int32 dstOffsetBytes
| Improve this Doc View Source

Dispose()

Declaration
public void Dispose()
| Improve this Doc View Source

Finalize()

Declaration
protected void Finalize()
| Improve this Doc View Source

GetData(Array)

Declaration
[SecurityCritical]
public void GetData(Array data)
Parameters
Type Name Description
Array data
| Improve this Doc View Source

GetData(Array, Int32, Int32, Int32)

Declaration
[SecurityCritical]
public void GetData(Array data, int managedBufferStartIndex, int computeBufferStartIndex, int count)
Parameters
Type Name Description
Array data
Int32 managedBufferStartIndex
Int32 computeBufferStartIndex
Int32 count

GetNativeBufferPtr()

Declaration
public IntPtr GetNativeBufferPtr()
Returns
Type Description
IntPtr
| Improve this Doc View Source

IsValid()

Declaration
public bool IsValid()
Returns
Type Description
Boolean
| Improve this Doc View Source

Release()

Declaration
public void Release()

SetCounterValue(UInt32)

Declaration
public void SetCounterValue(uint counterValue)
Parameters
Type Name Description
UInt32 counterValue
| Improve this Doc View Source

SetData(Array)

Declaration
public void SetData(Array data)
Parameters
Type Name Description
Array data
| Improve this Doc View Source

SetData(Array, Int32, Int32, Int32)

Declaration
public void SetData(Array data, int managedBufferStartIndex, int computeBufferStartIndex, int count)
Parameters
Type Name Description
Array data
Int32 managedBufferStartIndex
Int32 computeBufferStartIndex
Int32 count
| Improve this Doc View Source

SetData<T>(List<T>)

Declaration
public void SetData<T>(List<T> data)
    where T : struct
Parameters
Type Name Description
List<T> data
Type Parameters
Name Description
T
| Improve this Doc View Source

SetData<T>(List<T>, Int32, Int32, Int32)

Declaration
public void SetData<T>(List<T> data, int managedBufferStartIndex, int computeBufferStartIndex, int count)
    where T : struct
Parameters
Type Name Description
List<T> data
Int32 managedBufferStartIndex
Int32 computeBufferStartIndex
Int32 count
Type Parameters
Name Description
T
| Improve this Doc View Source

SetData<T>(NativeArray<T>)

Declaration
public void SetData<T>(NativeArray<T> data)
    where T : struct
Parameters
Type Name Description
NativeArray<T> data
Type Parameters
Name Description
T
| Improve this Doc View Source

SetData<T>(NativeArray<T>, Int32, Int32, Int32)

Declaration
public void SetData<T>(NativeArray<T> data, int nativeBufferStartIndex, int computeBufferStartIndex, int count)
    where T : struct
Parameters
Type Name Description
NativeArray<T> data
Int32 nativeBufferStartIndex
Int32 computeBufferStartIndex
Int32 count
Type Parameters
Name Description
T

Implements

System.IDisposable

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
MustExtensions.MustBeNull<T>(T)
MustExtensions.MustBeNull<T>(T, String)
MustExtensions.MustNotBeNull<T>(T)
MustExtensions.MustNotBeNull<T>(T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX