EndSample
Adds a command to end profile sampling.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
EndSample(string)
Adds a command to end profile sampling.
public void EndSample(string name)
Parameters
Name of the profile information used for sampling.
Remarks
Schedules a performance profiling sample to end when the Command Buffer reaches this point.
To begin a performance profiling sample, call CommandBuffer.BeginSample. At the and of the sample, call this method with the same argument as the BeginSample call.
EndSample(CustomSampler)
Adds a command to end profile sampling.
public void EndSample(CustomSampler sampler)
Parameters
The CustomSampler that the CommandBuffer uses for sampling.
Remarks
Schedules a performance profiling sample to end when the Command Buffer reaches this point.
To begin a performance profiling sample, call CommandBuffer.BeginSample. At the and of the sample, call this method with the same argument as the BeginSample call.
EndSample(ProfilerMarker)
Adds a command to end profile sampling.
[Conditional("ENABLE_PROFILER")]public void EndSample(ProfilerMarker marker)
Parameters
The ProfilerMarker that the CommandBuffer uses for sampling.
Remarks
Schedules a performance profiling sample to end when the Command Buffer reaches this point.
To begin a performance profiling sample, call CommandBuffer.BeginSample. At the and of the sample, call this method with the same argument as the BeginSample call.