Struct CommandBufferHelpers
This struct contains some static helper functions that can be used when you want to convert between Commandbuffer and RasterCommandBuffer/ComputeCommandBuffer/LowLevelCommandBuffer
Inherited Members
Namespace: UnityEngine.Experimental.Rendering
Syntax
public struct CommandBufferHelpersMethods
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. | 
VFXManager_ProcessCameraCommand(Camera, LowLevelCommandBuffer)
Wrapper for VFXManager.ProcessCameraCommand that works with LowLevelCommandBuffer.
Declaration
[Obsolete("Use ProcessCameraCommand with CullingResults to allow culling of VFX per camera")]
public static void VFXManager_ProcessCameraCommand(Camera cam, LowLevelCommandBuffer cmd)Parameters
| Type | Name | Description | 
|---|---|---|
| Camera | cam | The Camera to process the VFX commands for. | 
| LowLevelCommandBuffer | cmd | The CommandBuffer to push commands to (can be null). | 
VFXManager_ProcessCameraCommand(Camera, LowLevelCommandBuffer, VFXCameraXRSettings, CullingResults)
Wrapper for VFXManager.ProcessCameraCommand that works with LowLevelCommandBuffer.
Declaration
public static void VFXManager_ProcessCameraCommand(Camera cam, LowLevelCommandBuffer cmd, VFXCameraXRSettings camXRSettings, CullingResults results)Parameters
| Type | Name | Description | 
|---|---|---|
| Camera | cam | The Camera to process the VFX commands for. | 
| LowLevelCommandBuffer | cmd | The CommandBuffer to push commands to (can be null). | 
| VFXCameraXRSettings | camXRSettings | The XR settings that the Visual Effect Graph uses to process the Camera commands. | 
| CullingResults | results | The culling results to use. |