Class CommandBufferPool
Command Buffer Pool
Inherited Members
Namespace: UnityEngine.Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
public static class CommandBufferPool
Methods
Get()
Get a new Command Buffer.
Declaration
public static CommandBuffer Get()
Returns
Type | Description |
---|---|
CommandBuffer | Returns a new Command Buffer obtained from the buffer pool. |
Get(string)
Get a new Command Buffer and assign a name to it. Named Command Buffers will add profiling makers implicitly for the buffer execution.
Declaration
public static CommandBuffer Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name to be assigned to the new Command Buffer. |
Returns
Type | Description |
---|---|
CommandBuffer | Returns a new Command Buffer with the assigned name. |
Release(CommandBuffer)
Release a Command Buffer.
Declaration
public static void Release(CommandBuffer buffer)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | buffer | The Command Buffer to be released back into the buffer pool. |