Struct ProfilerScope ​
Namespace: ValveResourceFormat.Renderer
Assembly: Renderer.dll
RAII wrapper timing a region that submits no GPU work.
csharp
public ref struct ProfilerScopeRemarks ​
Unlike this issues no GPU timestamp queries and no debug group marker, so the region shows a CPU time and a blank GPU column. Must still be opened on the thread owning the frame, between and .
Constructors ​
ProfilerScope(string) ​
Begins timing a CPU-only region.
csharp
public ProfilerScope(string name)Parameters ​
name string
Name of the region, shown in the timings display.
Methods ​
Dispose() ​
Ends the region.
csharp
public readonly void Dispose()
