Class CopyBufferToBuffer
Wrapper for a compute shader that may be used to copy data from one compute buffer to another.
Namespace: Holoride.ElasticSDK.Compute
Assembly: Holoride.ElasticSDK.Library.Runtime.dll
Syntax
[PublicAPI]
public static class CopyBufferToBuffer
Methods
Dispatch(ComputeBuffer, ComputeBuffer)
Copies the contents from one compute buffer into another. Buffers must have the same size. Buffers
elements must be of type float
(or equivalently sized).
Declaration
public static void Dispatch(ComputeBuffer input, ComputeBuffer output)
Parameters
Type | Name | Description |
---|---|---|
ComputeBuffer | input | The buffer to copy data from. |
ComputeBuffer | output | The buffer to copy data to. |
Exceptions
Type | Condition |
---|---|
ArgumentException |
|
Dispatch(CommandBuffer, ComputeBuffer, ComputeBuffer)
Copies the contents from one compute buffer into another. Buffers must have the same size. Buffers
elements must be of type float
(or equivalently sized).
Declaration
public static void Dispatch(CommandBuffer commandBuffer, ComputeBuffer input, ComputeBuffer output)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | commandBuffer | The command buffer to run the compute shader in. |
ComputeBuffer | input | The buffer to copy data from. |
ComputeBuffer | output | The buffer to copy data to. |
Remarks
This overload requires input buffers to not change until execution of the command buffer.
Exceptions
Type | Condition |
---|---|
ArgumentException |
|
Initialize()
Declaration
public static void Initialize()