Class ComputeBuffer
Inheritance
ComputeBuffer
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
|
Improve this Doc
View Source
ComputeBuffer(Int32, Int32, ComputeBufferType)
Declaration
public ComputeBuffer(int count, int stride, ComputeBufferType type)
Parameters
Properties
count
Declaration
public int count { get; }
Property Value
stride
Declaration
public int stride { get; }
Property Value
Methods
CopyCount(ComputeBuffer, ComputeBuffer, Int32)
Declaration
public static void CopyCount(ComputeBuffer src, ComputeBuffer dst, int dstOffsetBytes)
Parameters
|
Improve this Doc
View Source
Dispose()
Declaration
|
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
|
Improve this Doc
View Source
IsValid()
Declaration
Returns
|
Improve this Doc
View Source
Release()
Declaration
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
|
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
|
Improve this Doc
View Source
SetData<T>(NativeArray<T>)
Declaration
public void SetData<T>(NativeArray<T> data)
where T : struct
Parameters
Type Parameters
|
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 Parameters
Implements
Extension Methods