Struct ProfilingSample
Scoped profiling sample.
Namespace: UnityEngine.Rendering
Syntax
public struct ProfilingSample : IDisposable
Constructors
ProfilingSample(CommandBuffer, String, CustomSampler)
Constructor
Declaration
public ProfilingSample(CommandBuffer cmd, string name, CustomSampler sampler = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CommandBuffer | cmd | Command Buffer used for setting up profiling samples. |
| String | name | Name of the profiling sample. |
| CustomSampler | sampler | Optional CustomSampler for CPU profiling. |
ProfilingSample(CommandBuffer, String, Object)
Constructor
Declaration
public ProfilingSample(CommandBuffer cmd, string format, object arg)
Parameters
| Type | Name | Description |
|---|---|---|
| CommandBuffer | cmd | Command Buffer used for setting up profiling samples. |
| String | format | Format string. |
| Object | arg | Format string arguments. |
ProfilingSample(CommandBuffer, String, Object[])
Constructor
Declaration
public ProfilingSample(CommandBuffer cmd, string format, params object[] args)
Parameters
| Type | Name | Description |
|---|---|---|
| CommandBuffer | cmd | Command Buffer used for setting up profiling samples. |
| String | format | Format string. |
| Object[] | args | Format string arguments. |
Methods
Dispose()
Disposable pattern implementation.
Declaration
public void Dispose()