Struct CommandBufferHelpers
This struct contains some static helper functions that can be used when you want to convert between Commandbuffer and RasterCommandBuffer/ComputeCommandBuffer/LowLevelCommandBuffer
Namespace: UnityEngine.Experimental.Rendering
Syntax
public struct CommandBufferHelpers
Methods
GetComputeCommandBuffer(CommandBuffer)
Get a ComputeCommandBuffer given an standard CommandBuffer.
Declaration
public static ComputeCommandBuffer GetComputeCommandBuffer(CommandBuffer baseBuffer)
Parameters
| Type | Name | Description |
|---|---|---|
| CommandBuffer | baseBuffer | The CommandBuffer the RasterCommandBuffer should record it's commands to. |
Returns
| Type | Description |
|---|---|
| ComputeCommandBuffer | A ComputeCommandBuffer that will record its commands to the given buffer. |
GetLowLevelCommandBuffer(CommandBuffer)
Get a LowLevelCommandBuffer given an standard CommandBuffer.
Declaration
public static LowLevelCommandBuffer GetLowLevelCommandBuffer(CommandBuffer baseBuffer)
Parameters
| Type | Name | Description |
|---|---|---|
| CommandBuffer | baseBuffer | The CommandBuffer the LowLevelCommandBuffer should record it's commands to. |
Returns
| Type | Description |
|---|---|
| LowLevelCommandBuffer | A LowLevelCommandBuffer that will record its commands to the given buffer. |
GetRasterCommandBuffer(CommandBuffer)
Get a RasterCommandBuffer given an standard CommandBuffer.
Declaration
public static RasterCommandBuffer GetRasterCommandBuffer(CommandBuffer baseBuffer)
Parameters
| Type | Name | Description |
|---|---|---|
| CommandBuffer | baseBuffer | The CommandBuffer the RasterCommandBuffer should record it's commands to. |
Returns
| Type | Description |
|---|---|
| RasterCommandBuffer | A RasterCommandBuffer that will record its commands to the given buffer. |